Created
April 13, 2013 18:24
-
-
Save matt-hwy1/5379493 to your computer and use it in GitHub Desktop.
How to review local commits that haven't been pushed.
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 log origin/master..HEAD | |
You can also view the diff using the same syntax | |
git diff origin/master..HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
git fetch origin
git reset --hard origin/master