Skip to content

Instantly share code, notes, and snippets.

@8bu
Created January 15, 2019 03:24
Show Gist options
  • Save 8bu/6fe9c571a3afdd2c50081baaced05d5a to your computer and use it in GitHub Desktop.
Save 8bu/6fe9c571a3afdd2c50081baaced05d5a to your computer and use it in GitHub Desktop.
delete a commit you accidentally pushed into github
git reset --hard <prev_commit_id>
git push --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment