开始学习
< 返回

Git 修改提交信息

1、列出 commit 列表

git rebase -i

找到需要修改的 commit 记录,把 pick 修改为 edite:wq 保存退出

2、修改 commit 的具体信息

git commit --amend

3、当你对你的修改满意后执行

git rebase --continue
Was this article helpful?
4.8 out of 5 stars

6 ratings

5 Stars 67%
4 Stars 33%
3 Stars 0%
2 Stars 0%
1 Stars 0%
Please Share Your Feedback
How Can We Improve This Article?
文章目录