2014-06-06 2 views
2

저는 Git에서 Visual Studio 2013과 함께 사용하기 위해 BEYOND COMPARE 4를 구성하는 방법을 알아 내려고하고 있습니다. 아무리 내가 이것을 구성하는 것 VS2013 내부 diff/병합 도구를 사용하고자합니다.Git을 사용할 때 Visual Studio 2013에서 Beyond Compare 4를 설정하십시오.

넘어 etc 디렉토리/자식 강타 창에서 디렉토리

C:\Program Files (x86)\Beyond Compare 4 

를 설치

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 
[email protected] 
gui.recentrepo=C:/DevSource/mercury 

C:\Users\me> 
GIT에서

글로벌 gitcoinfig 설치 비교

또한 BCompare.exe에 EXE를 변경 시도
[core] 
    symlinks = false 
    autocrlf = true 
[color] 
    diff = auto 
    status = auto 
    branch = auto 
    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 

BComp.exe 대신에 그것은 작동하지 않았다. 어떤 도움을 주시면 감사하겠습니다!

+0

'git mergetool'을 실행할 때 무엇을 얻습니까? – mgarciaisaia

답변

5

실제로 나는이 게시물에서 대답을 찾은 것 같습니다. Git Diff with Beyond Compare 지금까지 작동하는 것으로 보입니다. Visual Studio 환경은 내부 도구 대신 새로운 BC4.0 IDE를 가져옵니다.

[diff] 
    tool = bc4 
[difftool "bc4"] 
    cmd = \"c:/program files (x86)/beyond compare 4/bcomp.exe\" \"$LOCAL\" \"$REMOTE\" 
[merge] 
    tool = bc4 
[mergetool "bc4"] 
    cmd = \"c:/program files (x86)/beyond compare 4/bcomp.exe\" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\" 
    trustExitCode = true 
+0

나를 위해 완벽하게 일했습니다. 감사합니다. – Simon

관련 문제