How do you merge in GIT on Windows?

前端 未结 5 991
天命终不由人
天命终不由人 2020-12-07 12:39

I tried to use GIT however for me the biggest problem with it is that there is no tool for merge\'ing. At least the msysgit does not give me anything. How can I merge in GIT

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-07 13:34

    For me (windows xp, kdiff3 0.9.96 and git 1.7.5.1), Jan Hudec's answer did not work. Here is my setup:

    [diff]
            tool = kdiff3
            guitool = kdiff3
    
    [difftool]
            prompt = false
    
    [difftool "kdiff3"]
            path = /home/username/bin/difftool-kdiff3.sh
    

    and

    #!/bin/sh
    
    # Passed the following parameters from git
    #  --auto --L1 "somefile (A)" --L2 "somefile (B)" /tmp/4VhUw0_somefile somefile
    
    LOCAL=$6
    REMOTE=$7
    
    "C:/Program Files/KDiff3/kdiff3.exe" $(cygpath -w "$LOCAL") "$REMOTE"
    

提交回复
热议问题