상세 컨텐츠

본문 제목

[Git] mergetool

Operating System (OS) & Network & VCS/Git

by 찌니씨 2022. 10. 12. 15:45

본문

 

위치

~/.gitconfig

 


mergetool

 

$ git config --global merge.tool diffmerge
$ git config --global mergetool.diffmerge.cmd "diffmerge–merge–result= \$MERGED \$LOCAL \$BASE \$REMOTE"
$ git config --global mergetool.diffmerge.trustExitCode true

$ git mergetool

 

자동 백업 안되게 (default backup)

$ git config --global mergetool.keepBackup false

 


difftool
$ git config --global diff.tool diffmerge
$ git config --global difftool.diffmerge.cmd "diffmerge \$LOCAL \$REMOTE"

$ git difftool master~1 foo.rb

 

 

$ git config --global merge.tool p4merge
$ git config --global mergetool.p4merge.cmd

 

 

자세한 내용 추후 추가

 

참고

https://www.git-scm.com/docs/git-mergetool

 

Git - git-mergetool Documentation

Only the MERGED buffer will be shown. Note, however, that all the other ones are still loaded in vim, and you can access them with the "buffers" command. ------------------------------------------ | | | | | MERGED | | | | | --------------------------------

www.git-scm.com

https://dogfeet.github.io/articles/2011/git-mergediff.html

 

#dogfeet - Git:mergetool, difftool

보통은 Git에 기본으로 들어 있는 도구로도 충분하다. 기본 도구는 빠르고 간결해서 좋다. 하지만 가끔씩 Visual 도구가 필요하다. 먼저 본격 Diff 도구 리뷰를 보고 도구를 골라보자. 이 리뷰는 정

dogfeet.github.io

 

'Operating System (OS) & Network & VCS > Git' 카테고리의 다른 글

[Git] Mirror (저장소 복사)  (0) 2022.10.20
[Git] Git이란?  (0) 2022.10.14
[Git] Commit tamplate file  (0) 2022.10.12
[Git] Cherry-pick  (0) 2022.10.11
[Git] Merge 되돌리기  (0) 2022.10.11

관련글 더보기

댓글 영역