Skip to content

Instantly share code, notes, and snippets.

@rpayanm
Created July 12, 2019 20:25
Show Gist options
  • Save rpayanm/56d6b317198057a53a9497ab090bd9f1 to your computer and use it in GitHub Desktop.
Save rpayanm/56d6b317198057a53a9497ab090bd9f1 to your computer and use it in GitHub Desktop.

If you want to remove the commit altogether (and every commit that came after that)

git reset --hard adca297de~ //(assuming the commit's hash is adca297de). 
git push origin -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment