Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git-2.5.2.2-64-bit cannot use vimdiff when merge conflic

Tags:

git

bash

vim

I use git bash in Win7. After I upgrade to Git-2.5 when I merge conflict, git said Cannot execute shell C:/Program Files/Git/usr/bin/bash.

I have added the vim and git into path.

How can fix it? Thanks!

enter image description here

enter image description here

like image 912
viscroad Avatar asked Sep 13 '15 19:09

viscroad


2 Answers

try this command

MSYS_NO_PATHCONV=1 git mergetool

Git 2.5.3 Release Notes

like image 54
xyz Avatar answered Nov 10 '22 20:11

xyz


I added this to my vimrc and it seems to be working for me now with GIT 2.5 (I guess the shell variable was messed up)

set shell=$COMSPEC
like image 32
roqvist Avatar answered Nov 10 '22 22:11

roqvist