Skip to content

Instantly share code, notes, and snippets.

@matt-hwy1
Created April 13, 2013 18:24
Show Gist options
  • Save matt-hwy1/5379493 to your computer and use it in GitHub Desktop.
Save matt-hwy1/5379493 to your computer and use it in GitHub Desktop.
How to review local commits that haven't been pushed.
git log origin/master..HEAD
You can also view the diff using the same syntax
git diff origin/master..HEAD
@matt-hwy1
Copy link
Author

git fetch origin
git reset --hard origin/master

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