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 pullhas 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 | git fetch origin master |
Note that The
--no-editoption can be used to accept the auto-generated message (this is generally discouraged).