0

有没有其他方法来编辑 git 注释,比如设置默认编辑器等,而不是git notes --ref=$ABC edit $COMMIT.

4

1 回答 1

0

git notes 自 1.7.1 http://git.661346.n2.nabble.com/git-notes-and-core-editor-config-td5910253.html遵循您的编辑器设置。

编辑:如果你真的想,你可以学习http://alblue.bandlem.com/2011/11/git-tip-of-week-git-notes.html

git checkout notes/commits
[point editor at the commit hash you want to]
git commit -am 'whatever'
git update-ref refs/notes/commits 1234567

其中 1234567 是 [提交报告的哈希]。啊。但可行。

于 2012-11-13T08:58:41.387 回答