我一直在使用xed
来编写提交消息。
xed
会记住每个文件的最后一个光标位置。
由于文件.git/COMMIT_EDITMSG
已为每个提交消息重用,因此xed
会打开,并且光标会在我提交上一次提交时所处的位置。
PITA必须手动将光标重新定位到第一行。
[X]:我希望光标位于哪里。
[Y]:光标所在的位置。
[X]
# Please enter the commit [Y] message for your changes. Lines starting
# with '#' will be ignored,and an empty message aborts the commit.
#
# On branch develop
# Your branch is up to date with 'origin/develop'.
#