What's the best way to checkout selected files and folders from a bare git repository on linux?
问题 I'm setting up a git repository for a website on a GoDaddy shared hosting account. Normally one would set up a git bare repo on the server that contained the live web data only, then on a push to the remote use a git post-receive hook to checkout to the live directory (thanks to @VonC for the links). That's fine, but I've set up the repository to include work files as well. On the server I have, /home/username/repo.git/work_folders, and /home/username/repo/web_files_and_folders for the