0
0

git の差分比較・マージを WinMerge で行う

Last updated at Posted at 2024-01-29

git diff でWinMergeを呼び出す

参照URL

追記

上記ブログを参考に、~/.gitconfigを以下のように設定

$ cat ~/.gitconfig
[user]
        name = xxx
        email = xxxxxx@gmail.com
[core]
        editor = code --wait
        pager = less -F -X
[alis]
        co = commit
        ci = commit
[alias]
        st = status
        br = branch
        co = checkout
        ci = commit
[pull]
        rebase = true
[diff]
        tool = WinMerge
[difftool "WinMerge"]
        path = C:/Program Files/WinMerge/WinMergeU.exe
[difftool]
        prompt = false
[merge]
        tool = WinMerge
[mergetool "WinMerge"]
        path = C:/Program
[mergetool]
        prompt = false

これで「git difftool」コマンドをたたくことで、GUI diffツールのWinMergeで差分が表示される。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0