Created
February 24, 2017 09:09
-
-
Save AmilKey/9d040dfb0400bc942a428cd32184b9b0 to your computer and use it in GitHub Desktop.
to discard local commits
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
Your branch is ahead of 'origin/master' by 3 commits. | |
will remove all commits not in origin/master where origin is the repo name and master is the name of the branch. | |
git reset --hard origin/master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment