How do you merge in GIT on Windows?

前端 未结 5 993
天命终不由人
天命终不由人 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:19

    I suggest kdiff3. Install it and put something like:

    [merge]
            tool = kdiff3
    [mergetool "kdiff3"]
            path = c:/Program Files (x86)/KDiff3/kdiff3.exe
    [diff]
            tool = kdiff3
            guitool = kdiff3
    [difftool "kdiff3"]
            path = c:/Program Files (x86)/KDiff3/kdiff3.exe
    

    in your .gitconfig

    To edit the global config (.gitconfig): git config --global --edit

    The installation path on your machine may be different from c:/Program Files (x86)/KDiff3/kdiff3.exe. Replace that string above with actual path to your kdiff3 binary. And don't forget you have to use forward slashes, /, and not backward ones (\) like native programs usually do.

提交回复
热议问题