Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get directory git branch diff using kdiff

I have configured kDiff3 with my git.

What I need is to see directory difference between two branches. when I run

git difftool <headbranch>

command it opens all files one by one. But that is not I want.

like image 739
11 revs, 2 users 99% Avatar asked Nov 09 '12 11:11

11 revs, 2 users 99%


People also ask

How do I check my Git diff tool?

Type git config diff. tool winmerge . Verify it worked by typing git difftool . Get rid of the prompt typing git config --global difftool.


1 Answers

Let's say, we have the two branches master and base In order to see the difference between these branches, just execute:

git difftool -d base:src/ master:src/

Then your preset diff tool should get started, in my case kdiff3. Or you can also use the --tool option to start another one: e.g. with vimdiff

git difftool -d --tool=vimdiff  base:src/ master:src/

or with kdiff3 the same way

git difftool -d --tool=kdiff3  base:src/ master:src/
like image 198
Sedat Kilinc Avatar answered Oct 22 '22 20:10

Sedat Kilinc