Git Disable Pull Prompt

When run git pull origin master to make your local branch up-to-date, if there are files need to be merged, you will get prompt to confirm the merge and make commit. This is not good for automation, need to mute this prompt.

Note this method fits this situation, but not sure if this is a general way to go, because git pull has different syntax format.

Actually, git pull does a git fetch followed by git merge, so can sepetate it into two steps:

1
git pull origin master

Changes to

1
2
git fetch origin master
git merge FETCH_HEAD --no-edit

Note that The --no-edit option can be used to accept the auto-generated message (this is generally discouraged).

0%