【发布时间】:2011-01-08 08:02:36
【问题描述】:
有一些方法可以从以后的提交中更改消息:
git commit --amend # for the most recent commit
git rebase --interactive master~2 # but requires *parent*
如何更改第一个提交(没有父提交)的提交消息?
【问题讨论】:
-
特别:
git filter-branch --msg-filter的脚本中GIT_COMMIT环境变量的使用
标签: git git-rebase git-commit git-rewrite-history git-amend