Reputation: 319
Is there a way to specify custom merge message without using --edit?
This brings up editor:
git pull <some location> --edit
I would like:
git pull <some location> --merge-message "Merge from X"
Upvotes: 0
Views: 63
Reputation: 94827
https://git-scm.com/docs/git-pull#_description:
git pull
is shorthand for git fetch
followed by git merge
.
https://git-scm.com/docs/git-merge#Documentation/git-merge.txt--mltmsggt
git merge
(and hence git pull
) accepts -m message
to pass the message and -F file
to get the message from the file.
Upvotes: 2