我commit了两次
先提交了a;后提交了b,如何让a提交无效?
git revert a # 把commit a里的改动反过来改一遍
Roll back to the one before a and resubmit b
git reset --hard the_commit_id//id可以在你的git中看到
git revert a # 把commit a里的改动反过来改一遍
Roll back to the one before a and resubmit b