« 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.
--Chris
Online Git Book, "Pro Git"
Posted at 01:31 PM in Software | Permalink
TrackBack
TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d8341f85d553ef014e867220dc970d
Listed below are links to weblogs that reference Git: Should I use 'git pull' or 'git fetch'?:
