- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2020-12-31T13:27:23+09:00","default:ryuichi","ryuichi")
#author("2020-12-31T13:42:27+09:00","default:ryuichi","ryuichi")
* ブランチ間で特定のファイルのdiffを見る [#b80a47c6]
** 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