« BitCoin: A New Internet Currency? | Main | How to Get SFTP Perl support on Windows XP »

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"


Posted at 01:31 PM in Software | Permalink


TrackBack URL for this entry:

Listed below are links to weblogs that reference Git: Should I use 'git pull' or 'git fetch'?:


Post a comment