当我输入时git diff,我想用我选择的视觉差异工具(Windows上的SourceGear"diffmerge")查看输出.如何配置git来执行此操作?
我希望通过Beyond Compare或任何其他单独的diff工具查看特定的提交git show.我试着看看git show/difftool/config的帮助,却找不到任何东西.有谁知道怎么做?
我已经看过Git Diff with Beyond Compare并配置了Beyond Compare,git difftool但我也希望将它用作工具git show
我最喜欢的svn工作流程之一是使用Beyond Compare的文件夹比较功能来查看两个分支或分支和主干之间的净差异.有没有办法在git中执行此操作而无需手动创建同一存储库的多个克隆?
当我问这个问题时,我发现我可以写一个脚本,将当前的repo克隆到一个临时目录,检出所需的分支,然后用两个目录作为参数调用BCompare.exe.使用调用文件夹比较视图
BCompare.exe path/to/folder1 path/to/folder2
Run Code Online (Sandbox Code Playgroud)
这听起来合理吗?在完成Beyond Compare之后,我能否删除额外的克隆?
我总是问自己一些关于我创建的分支的问题,我还没有确定如何完成:
现在我想如果弄清楚如何获取所有提交给分支但没有合并到master中的提交的哈希值git cherry master <branchname>.有了这个我可以通过哈希哈希并弄清楚一切,但如果你有很多提交,这可能是耗时的.请注意,我不想与当前的主人状态进行比较.我认为关键是要知道你创建分支的master的哈希值,但我不确定如何确定它.
我是GIT的新手.我正在Ubuntu机器上开发项目.
在我的项目根路径中,当键入时git status,我在终端窗口上得到以下输出:
# On branch develop
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: Rakefile
# modified: db/schema.rb
Run Code Online (Sandbox Code Playgroud)
但是,我不知道对这些文件进行了哪些更改/修改,如何检查对这两个文件进行了哪些更改?
我正在试图弄清楚如何配置BEYOND COMPARE 4以与Visual Studio 2013和GIT一起使用.无论我怎么配置它,它都想使用VS2013内部差异/合并工具.
超越比较安装目录
C:\Program Files (x86)\Beyond Compare 4
Run Code Online (Sandbox Code Playgroud)
来自git bash窗口
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\me>git --version
git version 1.8.3.msysgit.0
C:\Users\me>git config --list
core.symlinks=false
core.autocrlf=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
pack.packsizelimit=2g
help.format=html
http.sslcainfo=/bin/curl-ca-bundle.crt
sendemail.smtpserver=/bin/msmtp.exe
rebase.autosquash=true
diff.tool=bc4
difftool.bc4.path=C:\Program Files (x86)\Beyond Compare 4\BComp.exe
merge.tool=bc4
mergetool.bc4.path=C:\Program Files (x86)\Beyond Compare 4\BComp.exe
core.editor="C:/Program Files (x86)/GitExtensions/GitExtensions.exe" fileeditor
core.autocrlf=true
credential.helper=!\"C:/Program Files (x86)/GitExtensions/GitCredentialWinStore/
git-credential-winstore.exe\"
user.name=me
user.email=me@email.com
gui.recentrepo=C:/DevSource/mercury
C:\Users\me>
Run Code Online (Sandbox Code Playgroud)
GIT中的全局gitcoinfig安装/ etc目录
[core]
symlinks = false
autocrlf = true
[color]
diff …Run Code Online (Sandbox Code Playgroud) 我们如何在 BeyondCompare 中将 git 目录与工作目录进行比较?