Sometimes, you need to patch a specific file but you can’t pull the whole branch when deploying. To checkout a specific version revision of a file, git syntax is : git checkout -m 4a3171c — filename For example, to get the last revision number of your master branch, look at your git fetch ouput : …