git-commit错了如何更改
文章发布较早,内容可能过时,阅读注意甄别。
有时候在执行 git commit -m "test"
填写提交信息的时候,写错了,不过代码还没有 push
,此时可以用如下命令更改:
git commit --amend -m "新的提交信息"
1
![微信](https://t.eryajf.net/imgs/2023/01/834f12107ebc432a.png)
![支付宝](https://t.eryajf.net/imgs/2023/01/fc21022aadd292ca.png)
上次更新: 2024/06/13, 22:13:45
- 01
- 学习周刊-总第169期-2024年第30周07-26
- 02
- 使用docker快速部署rancher-2.8.5并投入生产实践07-20
- 03
- 学习周刊-总第168期-2024年第29周07-18