【发布时间】:2020-05-01 12:52:11
【问题描述】:
有没有办法在不使用 --edit 的情况下指定自定义合并消息?
这会调出编辑器:
git pull <some location> --edit
我想要:
git pull <some location> --merge-message "Merge from X"
【问题讨论】:
有没有办法在不使用 --edit 的情况下指定自定义合并消息?
这会调出编辑器:
git pull <some location> --edit
我想要:
git pull <some location> --merge-message "Merge from X"
【问题讨论】:
https://git-scm.com/docs/git-pull#_description:
git pull 是git fetch 后跟git merge 的简写。
https://git-scm.com/docs/git-merge#Documentation/git-merge.txt--mltmsggt
git merge(因此git pull)接受-m message 传递消息,-F file 从文件中获取消息。
【讨论】: