Note. GIt 2.0.x (Q3 2014) does not display this message if you have clearly defined your merge.tool .
No need for -y .
See commit 4ecc63d Felipe Contreras ( felipec ) :
mergetool : run the prompt only if the guessed tool
It is annoying to see the invitation:
Hit return to start merge resolution tool (foo):
Each time the user does a “ git mergetool ”, even if the user has already configured “ foo ” as the required tool.
Display this prompt only if the user has not explicitly configured the tool.
See git-mergetool--lib.sh#L323-L339 for the “explicitly defined” part: git config merge.tool
This is explained by commit c15bb0c :
-y:: --no-prompt::
Do not request before each call to the merge program.
This is the default if the merge resolver is explicitly specified with the --tool option or with the merge.tool configuration merge.tool .
--prompt::
A request before each call to the merge permission program to enable the user to skip a path.
source share