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
This works for me:
git --git-dir=path-to-bare-repo.git --work-tree=path-to-target checkout master .
this command will extract all files from the repository to the directory specified by path-to-target
path-to-target