修改最新的log
git commit --amend
git push -f #强制推送
修改历log
git rebase -i HEAD~2
pick 1f639c0 222
pick a8aef3a 4333
改为
pick 1f639c0 222
edit 8aef3a 4333
git commit --amend
扫描二维码关注公众号,回复:
7532563 查看本文章
git rebase --continue
git push -f #强制推送