Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I see the list of available merge tools for git on the command line?

I am using git on a virtual machine Ubuntu server running command-line only and I don't know vim (and frankly I don't really want to learn it right now) so I don't want to use vimdiff. How can I get the list of available merge tools for git?

Bonus points for a list of merge tools usable from the command line that don't have too much of a steep learning curve!

like image 479
Technoh Avatar asked Aug 19 '13 19:08

Technoh


2 Answers

This gives you the list without actually starting the merge :

git mergetool --tool-help
like image 114
Trunal Bhanse Avatar answered Sep 21 '22 23:09

Trunal Bhanse


Just run it without a tool value:

$ git mergetool --tool=
merge tool candidates: meld opendiff kdiff3 tkdiff xxdiff tortoisemerge gvimdiff diffuse ecmerge p4merge araxis bc3 vimdiff emerge

I'll leave the bonus points for the documentation :/

like image 22
sehe Avatar answered Sep 21 '22 23:09

sehe