Last active
December 15, 2015 22:49
-
-
Save thisavoropaev/d9282f0991ee45a166c3 to your computer and use it in GitHub Desktop.
Delete 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
###Git discard all local changes/commits and pull from upstream | |
git reset --hard origin/your_branch | |
git pull origin your_branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment