Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to skip "Hit return to start merge resolution tool" and open mergetool automatically

Git asking to hit return button to open the mergetool for each conflict file one by one:

> git mergetool 
Normal merge conflict for '...':
  {local}: modified file
  {remote}: modified file
Hit return to start merge resolution tool (opendiff):

How can I avoid the hitting return step for my project and just open the configured merge tool automatically?

like image 866
erkfel Avatar asked Aug 23 '13 19:08

erkfel


1 Answers

To permanently skip the prompt, run:

git config --global mergetool.prompt false

To skip it for a single run of git mergetool, pass -y or --no-prompt:

git mergetool -y
like image 108
John Mellor Avatar answered Sep 21 '22 05:09

John Mellor