LoginSignup
0
0

More than 1 year has passed since last update.

Git ローカルの作業コピーを他のブランチと比較するコマンド(メモ)

Posted at

test-branchというブランチで作業していて、その中のtest.txtをmasterのtest.txtと比較する、という場合

git diff master -- test.txt
git difftool master -- test.txt

作業コピーではなく、ブランチ間の最新のコミット同士を比較する場合

git diff master..test-branch -- test.txt
git difftool master..test-branch -- test.txt

git difftoolで起動するdiffツールの設定
WinMergeの場合は

git config --global diff.tool 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