在msysgit中使用p4merge(windows版)

1.安裝P4merge http://www.perforce.com/perforce/products/merge.html

將安裝路徑加入到PATH變量中


2. 打開.gitcofig文件,添加如下內容

[diff]
    tool = p4merge
[difftool "p4merge"]
    external = "p4merge $LOCAL $REMOTE"
    prompt = false
[merge]
    tool = p4merge
[mergetool "p4merge"]
    cmd = "p4merge $BASE $LOCAL $REMOTE $MERGED"
    prompt = false
    keepTemporaries = false
    trustExitCode = true
    keepBackup = false

3. 運行git difftool打開圖形界面


參考:http://stackoverflow.com/questions/7944757/configuring-a-diff-tool-for-git-on-windows

http://www.geekgumbo.com/2010/05/12/installing-and-using-p4merge-in-git-for-windows/


Linux平臺推薦

  • gitk - graphical history browser, in Tcl/Tk, distributed with Git (usually in gitk package)
  • git gui - graphical commit tool, in Tcl/Tk, distributed with Git (usually in git-gui package)
  • QGit - uses Qt toolkit
  • Giggle - uses GTK+ toolkit
  • git-cola - uses PyQt4
  • gitg - GTK+/GNOME clone of GitX
  • tig - text mode interface for git, is GUI and pager, uses ncurses

http://stackoverflow.com/questions/1516720/git-gui-client-for-linux



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章