Skip to content

Instantly share code, notes, and snippets.

@jpgreenwald
Created July 7, 2013 05:05
Show Gist options
  • Save jpgreenwald/5942374 to your computer and use it in GitHub Desktop.
Save jpgreenwald/5942374 to your computer and use it in GitHub Desktop.
Proper way to fetch remote changes to a git repo
git fetch origin
git checkout master
git merge origin/master
@jpgreenwald
Copy link
Author

Also works:

git fetch
(shows d801e1a..0da8afd master -> origin/master)
git merge origin/master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment