0

在 Debian Linux v. 9 中,我使用以下命令进行文件比较,该命令运行正常:

git difftool /file/a /file/b

在 Debian Linux v. 10 中,我以相同的方式使用此命令并出现以下错误:

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

请帮帮我,解决它。

PS:我在工作中没有使用任何 git-repositories,只是来自 git 的 difftool。

4

1 回答 1

0

您需要git2.22.0 或更高版本。在 2.22.0git difftool中可以在存储库之外运行。见https://github.com/git/git/blob/master/Documentation/RelNotes/2.22.0.txt

于 2021-07-01T21:32:35.850 回答