git-commit错了如何更改
文章发布较早,内容可能过时,阅读注意甄别。
有时候在执行 git commit -m "test"
填写提交信息的时候,写错了,不过代码还没有 push
,此时可以用如下命令更改:
git commit --amend -m "新的提交信息"
1
上次更新: 2024/04/25, 22:08:24
- 01
- 学习周刊-总第156期-2024年第17周04-25
- 02
- 基于langchaingo实现知识库对接本地模型ollama的分步探索04-19
- 03
- 学习周刊-总第155期-2024年第16周04-19