Git difftool有时不打开 [英] Git difftool not opening sometimes
问题描述
我有2个文件夹(不同的代码)与初始化的git。但是,当我做的时候
git difftool -t meld
一个回购工作正常,询问我是否想打开文件进行比较。另一个只输出控制台中的所有内容,不执行合并。
两个.git / config文件都是一样的(除了url)
有谁知道为什么就是它?
您可能在本地配置了您的 diff.tool
(检查你的porjects和你的全局〜/ .gitconfig
文件中的 .git / config
文件的内容)
将meld设置为全局difftool:
git config --global diff.tool meld
I have 2 folders (with different code) with git initialized. But when I do
git difftool -t meld
one repo is working fine and asking me if I want to open files in meld to compare. The other one just output everything in the console and didn't execute meld.
Also both .git/config file is the same (except for the url)
Does anyone know why is that?
You may have configured your diff.tool
locally instead of globally (inspect the content of .git/config
files in both your porjects, and your global ~/.gitconfig
file).
To set meld as your global difftool :
git config --global diff.tool meld
这篇关于Git difftool有时不打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!