在 Git 中撤消更改的方法--笔记 Ryan_Polarbear 2023-06-18 128 阅读1分钟 git amend 修改文件 git commit -a --amend 仅 提交信息 git commit --amend git push -f 仅仅到自己的分支 切莫推到公共分支 回退特定 git reset --hard 图文详情 Ref: 三元 # 在Git中撤消更改的 6 种方法 Ref: aleksandr hovhannisyan # 6 Ways to Undo Changes in Git