March 02, 2011
Git: Should I use 'git pull' or 'git fetch'?
While searching for documentation explaining the difference between "git pull" versus "git fetch", I found a nice blog posting covering this issue titled, git: fetch and merge, don’t pull.
The short answer is use 'git fetch origin' followed by a 'git merge origin/master'. You can insert a 'git diff master origin/master' between the first and second command to see what will be brought in.
Online Git Book, "Pro Git"
TrackBack URL for this entry:
Listed below are links to weblogs that reference Git: Should I use 'git pull' or 'git fetch'?: