Using git difftool for files comparsion in Debian Linux v. 10 (buster)

78 views Asked by At

In Debian Linux v. 9 I use following command to do files comparison and this command is working OK:

git difftool /file/a /file/b

In Debian Linux v. 10 I use this command in the same way and have following error:

fatal: not a git repository (or any of the parent directories): .git

Help me, please, resolve it.

PS: I don't use any git-repositories in the work, just only difftool from git.

1

There are 1 answers

2
phd On

You need git version 2.22.0 or higher. In 2.22.0 git difftool can run outside a repository. See https://github.com/git/git/blob/master/Documentation/RelNotes/2.22.0.txt