相关疑难解决方法(0)

如何使用我喜欢的diff工具/查看器查看'git diff'输出?

当我输入时git diff,我想用我选择的视觉差异工具(Windows上的SourceGear"diffmerge")查看输出.如何配置git来执行此操作?

git diff diffmerge difftool git-difftool

735
推荐指数
17
解决办法
42万
查看次数

git show commit超越比较

我希望通过Beyond Compare或任何其他单独的diff工具查看特定的提交git show.我试着看看git show/difftool/config的帮助,却找不到任何东西.有谁知道怎么做?

我已经看过Git Diff with Beyond Compare并配置了Beyond Compare,git difftool但我也希望将它用作工具git show

git git-diff beyondcompare

21
推荐指数
2
解决办法
5376
查看次数

Git分支的目录比较

我最喜欢的svn工作流程之一是使用Beyond Compare的文件夹比较功能来查看两个分支或分支和主干之间的净差异.有没有办法在git中执行此操作而无需手动创建同一存储库的多个克隆?

当我问这个问题时,我发现我可以写一个脚本,将当前的repo克隆到一个临时目录,检出所需的分支,然后用两个目录作为参数调用BCompare.exe.使用调用文件夹比较视图

BCompare.exe path/to/folder1 path/to/folder2
Run Code Online (Sandbox Code Playgroud)

这听起来合理吗?在完成Beyond Compare之后,我能否删除额外的克隆?

git beyondcompare beyondcompare3

14
推荐指数
2
解决办法
5103
查看次数

git - 自创建以来对分支的更改?

我总是问自己一些关于我创建的分支的问题,我还没有确定如何完成:

  1. 我在分支中更改了哪些文件?
  2. 我对分支的实际变化(差异)是什么?
  3. 我对分支机构提交的日志是什么?

现在我想如果弄清楚如何获取所有提交给分支但没有合并到master中的提交的哈希值git cherry master <branchname>.有了这个我可以通过哈希哈希并弄清楚一切,但如果你有很多提交,这可能是耗时的.请注意,我不想与当前的主人状态进行比较.我认为关键是要知道你创建分支的master的哈希值,但我不确定如何确定它.

git branch msysgit

10
推荐指数
2
解决办法
5104
查看次数

GIT新手:如何检查我的情况有哪些变化?

我是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)

但是,我不知道对这些文件进行了哪些更改/修改,如何检查对这两个文件进行了哪些更改?

git github git-svn

3
推荐指数
1
解决办法
306
查看次数

使用Git时在Visual Studio 2013中设置Beyond Compare 4

我正在试图弄清楚如何配置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)

git beyondcompare visual-studio-2013

3
推荐指数
1
解决办法
1656
查看次数

Beyond 比较 Git 目录与工作目录的差异

我们如何在 BeyondCompare 中将 git 目录与工作目录进行比较?

git beyondcompare

1
推荐指数
1
解决办法
406
查看次数