How to pull a single file from a server repository in Git?
问题 I am working on a site with a server running Git. I am using Git for deployment (not GitHub). This was set up prior to my involvement using a hook method, and I referred to this question and entered the commands below, but it didn't work. How do I pull a single file from the server? For instance, if I wanted to update my local file index.php? git pull index.php ? 回答1: It is possible to do (in the deployed repository): git fetch // git fetch will download all the recent changes, but it will