Home > Q&A > body text
I committed twice
A was submitted first; then b was submitted. How to invalidate the submission of a?
为情所困2017-05-02 09:28:29
git revert a # 把commit a里的改动反过来改一遍
大家讲道理2017-05-02 09:28:29
Roll back to the one before a and resubmit b
git reset --hard the_commit_id//id可以在你的git中看到