위치
~/.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
[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 |
댓글 영역