Yanor.net/
Wiki
Blog
GitHub
Sandbox
開始行:
* 親コミットを確認 [#a20e1d3c]
git show --name-only HEAD^ # 親コミットの内容を確認
git show --name-only HEAD^^ # 親コミットの親コミットの...
** マージコミットの場合(親コミットが2つある) [#re160942]
git show --name-only HEAD
commit abc1234
Merge: xxx9999 yyy0000
Author: foo <foo@example.com>
Date: Tue May 29 17:00:00 2017 +0000
- Merge:が表示される。
- この場合は、abc1234(HEAD)の親コミットは、xxx999 と yyy0...
- それぞれの親コミットは以下のように確認する。
git show --name-only HEAD^1 # 上の例でのxxx9999の内容
git show --name-only HEAD^2 # 上の例でのyyy0000の内容
git show --name-only HEAD^1^ # 上の例でのxxx9999の親コミ...
** 参考 [#i5db327c]
https://git-scm.com/docs/git-show
終了行:
* 親コミットを確認 [#a20e1d3c]
git show --name-only HEAD^ # 親コミットの内容を確認
git show --name-only HEAD^^ # 親コミットの親コミットの...
** マージコミットの場合(親コミットが2つある) [#re160942]
git show --name-only HEAD
commit abc1234
Merge: xxx9999 yyy0000
Author: foo <foo@example.com>
Date: Tue May 29 17:00:00 2017 +0000
- Merge:が表示される。
- この場合は、abc1234(HEAD)の親コミットは、xxx999 と yyy0...
- それぞれの親コミットは以下のように確認する。
git show --name-only HEAD^1 # 上の例でのxxx9999の内容
git show --name-only HEAD^2 # 上の例でのyyy0000の内容
git show --name-only HEAD^1^ # 上の例でのxxx9999の親コミ...
** 参考 [#i5db327c]
https://git-scm.com/docs/git-show
ページ名: