Skip to content

Instantly share code, notes, and snippets.

@ypolosov
Created March 23, 2018 08:58
Show Gist options
  • Save ypolosov/05095cc92b83df689d9be6d2fd8dd8b3 to your computer and use it in GitHub Desktop.
Save ypolosov/05095cc92b83df689d9be6d2fd8dd8b3 to your computer and use it in GitHub Desktop.
hard git reset on a remote repo
git reset --hard <commit>
git push -f origin <branch>
git pull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment