Difference between different refspecs in a git-pull call
问题 Whats the difference between using the following git commands git pull origin master git pull origin master:master Some observations 1) First one tells me if there any conflicts but the other simply says "rejected - non-fast forward " 2) Second one doesn't update my remote pointers i.e. origin/master if it fails 回答1: This is a bit tricky, so let's deal with it one bit at a time. git pull rolls like this: Fetches the given refs 1 (the second argument in your examples, which is called the