How to disable git Prompt message for merge

Viewed 749

I am using git command to pull the repository on Linux machine.When I do the git pull it prompt me for Commit message like

Please enter a commit message to explain why this merge is necessary,especially if it merges an updated upstream into a topic branch

How can I disable this prompt message using my existing git pull command?

Following is the git command that I am using

sudo git pull https://someusername:somepassword@someproject.visualstudio.com/BE%20SWM/_git/jcibe-swm-ems develop

1 Answers

What does git pull do is git fetch followed by git merge FETCH_HEAD.

Here is solution to avoid prompt message.

git fetch https://someusername:somepassword@someproject.visualstudio.com/BE%20SWM/_git/jcibe-swm-ems develop && git merge FETCH_HEAD --no-edit
Related