2014-07-17 1 views
4

나는 명령 줄을 통해 비교를 통해 구성 방법을 알아내는 노력하고있다 힘내 윈도우 (cygwin에서)를 사용합니다. compare의 설명서를 바탕으로 bcomp.exe 설치에 "path"를 사용하면 모든 작업이 가능합니다. 그러나 "Local", "Base"및 "Remote"매개 변수는 자동으로 선택되지 않습니다. Beyond compare 3.0 PRO를 사용하고 있습니다.너머 구성하는 방법 힘내 명령 줄과

답변

10

나는 git config를 사용하여 약간의 답을 찾아 냈다. 참고 : 메모장에서 글로벌 git 구성을 편집했는데 완료 한 후 내 구성이 어떻게 표시되는지 알려줍니다. 희망이 사람을 도움이됩니다.

[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 
keepBackup = false 
+0

@lerner, 답변으로 표시해야합니다. – Jared

+0

나를 위해 작동하지 않는 것 같습니다. 어떻게 잘못 될지 테스트 할 수 있습니까? – user3613932

0

다음 코드를 사용하여 명령 줄에서 구성 파일을 직접 편집 할 수 있습니다. - 명령 줄 기본 편집기를 시작합니다.

$ git config --global --edit

P.s. 위의 팁도 나를 위해 일했다. Win7 엔터프라이즈를 사용하고 있습니다. 저쪽은 단말기 유형 다음 명령에 Linux의 버전 3

비교

1

Windows 용

git config --global diff.tool bc3 
git config --global difftool.prompt false 
git config --global difftool.bc3 trustExitCode true 

git config --global merge.tool bc3 
git config --global mergetool.bc3 trustExitCode true 

다음과 같은 유형의

git config --global difftool.bc3.path "c:/program files (x86)/beyond compare 3/BCompare.exe" 
git config --global mergetool.bc3.path "c:/program files (x86)/beyond compare 3/bcomp.exe" 
(당신은 bcomp.exe의 경로를 이눔 말할 필요)
1

Visual Studio에서 실제로 병합이 발생했음을 이해하려면 이처럼 경로 주위에 작은 따옴표를 써야했습니다. 이것은 Windows의 Beyond Compare 4 Pro를위한 것입니다.

[diff] 
    tool = bc 
[difftool "bc"] 
    cmd = '"C:/Program Files/Beyond Compare 4/BComp.exe"' "$LOCAL" "$REMOTE" 
[merge] 
    tool = bc 
[mergetool "bc"] 
    cmd = '"C:/Program Files/Beyond Compare 4/BComp.exe"' "$LOCAL" "$REMOTE" "$BASE" "$MERGED" 
    trustExitCode = true 
    keepBackup = false