Adi*_*vit 16 git branch beyondcompare difftool
>>git difftool branch1 branch2打开我的difftool(Beyond Compare:BC)与每个在分支之间有差异的文件.我必须在每个文件之后关闭BC,只是为了重新打开下一个文件.
BC可以区分整个目录和多个文件.
有没有办法git difftool同时打开所有文件,或同时扩散整个树?
Oli*_*alo 20
从git v1.7.11开始,您可以使用它git difftool --dir-diff来执行目录diff.
以下答案适用于早于v1.7.11的git安装.
这个问题与BC没有关系,但与git的工作方式有关.幸运的是,这个URL有一个解决方案 - git-diffall
Chr*_*ris 14
我使用这些命令设置Beyond Compare 4(尽管你看到的是bc3)作为差异/合并工具:
git config --global diff.tool bc3
git config --global difftool.bc3.path"C:/ Program Files/Beyond Compare 4/bcomp.exe"
git config --global merge.tool bc3
git config --global mergetool.bc3.path"C:/ Program Files/Beyond Compare 4/bcomp.exe"
然后我比较了这样的两个分支,其中"oldbranchname"和"newbranchname"是我想要比较的两个分支的名称.
git difftool -d --tool = bc3 oldbranchname newbranchname
我得到文件夹视图,好像我比较了两个文件夹,超出比较.唯一需要注意的是,它不会在比较中显示相同的文件,但这并没有困扰我.
| 归档时间: |
|
| 查看次数: |
7372 次 |
| 最近记录: |