Anand Deshmukh
Anand Deshmukh

Reputation: 1126

How to disable git Prompt message for merge

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:[email protected]/BE%20SWM/_git/jcibe-swm-ems develop

Upvotes: 3

Views: 1217

Answers (1)

Vaibhav Mule
Vaibhav Mule

Reputation: 5126

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:[email protected]/BE%20SWM/_git/jcibe-swm-ems develop && git merge FETCH_HEAD --no-edit

Upvotes: 1

Related Questions