Created
July 7, 2013 05:05
-
-
Save jpgreenwald/5942374 to your computer and use it in GitHub Desktop.
Proper way to fetch remote changes to a git repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git fetch origin | |
git checkout master | |
git merge origin/master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also works:
git fetch
(shows d801e1a..0da8afd master -> origin/master)
git merge origin/master