I have a server on which I have a bare repository for pushing. However, my server needs to have a working copy of the master branch.
How do I get a working copy and
You can use 'git show' for this.
http://www.kernel.org/pub/software/scm/git/docs/git-show.html
Basically:
git --no-pager --git-dir /path/to/bar/repo.git show branch:path/to/file.txt