michael
michael

Reputation: 110570

Any tool to see differences between version in git

Is there any tool out there which enables me to see differences between different versions in git? and the differences is shown in-line in a file? E.g. like the way eclipse shows 2 files differences?

Thank you.

Upvotes: 1

Views: 308

Answers (2)

masonk
masonk

Reputation: 9788

You can use a lot of different tools.

git difftool --tool=$TOOL <REV1>..<REV2> -- FileName

Where <REV1> and <REV2> are any valid revision identifiers according to git-rev-parse, and $TOOL is the command line invocation of any number of tools for which git has drivers.

To use a tool by default, git config diff.tool $TOOL

Upvotes: 1

Stewie Griffin
Stewie Griffin

Reputation: 9327

Use Beyond Compare. Best tool I've ever used. Works perfect with GIT

Command in git will be: git mergetool. For standard git compare use: gitk

put this in your c:\program files\git\etc\gitconfig file:

[merge] tool = bc3 # This will be the default merge tool invoked by git mergetool. [mergetool "bc3"] cmd = 'c:/Program Files/Beyond Compare 3/bcomp.exe' \

    "$PWD/$LOCAL" \
    "$PWD/$REMOTE" \
    "$PWD/$BASE" \

"$PWD/$MERGED" keepBackup = false trustExitCode = FALSE

More Info

Upvotes: 0

Related Questions