Skip to content

Instantly share code, notes, and snippets.

@tqyq
Created April 8, 2016 03:20
Show Gist options
  • Save tqyq/aa6f1a17c8439774ec8d34e21bbf0d2e to your computer and use it in GitHub Desktop.
Save tqyq/aa6f1a17c8439774ec8d34e21bbf0d2e to your computer and use it in GitHub Desktop.
git 删除错误提交的commit
git reset --hard <commit_id>
git push origin HEAD --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment