ブランチ間で特定のファイルのdiffを見る

1. diffを見たいブランチのHEADのコミットIDを調べる

 git show-ref --head
 
 543732618a HEAD
 543732618a refs/heads/branch1
 cf25697a4d refs/heads/master
 cf25697a4d refs/remotes/origin/HEAD
 543732618a refs/remotes/origin/branch1
 cf25697a4d refs/remotes/origin/master
  • ここではmasterブランチ 54373 とbranch1ブランチ cf256 を対象とする

2. diffを見る

 git diff cf256 54373 -- src/index.txt

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2020-12-31 (木) 13:42:27