#author("2020-12-31T13:27:58+09:00","default:ryuichi","ryuichi")
#author("2020-12-31T13:42:27+09:00","default:ryuichi","ryuichi")
* ブランチ間で特定のファイルのdiffを見る [#b80a47c6]

 git diff branchA branchB -- src/index.txt
** 1. diffを見たいブランチのHEADのコミットIDを調べる [#f115f009]

 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を見る [#meb77461]

 git diff cf256 54373 -- src/index.txt


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