Skip to content

Instantly share code, notes, and snippets.

@thisavoropaev
Last active December 15, 2015 22:49
Show Gist options
  • Save thisavoropaev/d9282f0991ee45a166c3 to your computer and use it in GitHub Desktop.
Save thisavoropaev/d9282f0991ee45a166c3 to your computer and use it in GitHub Desktop.
Delete local commits
###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