1はgit submodule add [remote URL]
でGitのサブモジュールを作成し、サブモジュールにコミットしている場合、親プロジェクトでgit diff
がそれにcd
に1が持っているサブモジュールで別のを見ると2をコピーするためにコミットハッシュの代わりにgitサブモジュールにdiffの詳細を表示するためのショートカットはありますか?
diff --git a/validation-tools b/validation-tools index 78208b2..8941219 160000 --- a/validation-tools +++ b/validation-tools @@ -1 +1 @@ -Subproject commit 78208b2e64422a85509f0462b944ef8fbde93f48 +Subproject commit 8941219dd4935e97a585295ec34fb190e601b7ab
のようなものを示していますgit diff
またはgit difftool
の引数としてハッシュを返します。私は、コピーを避けるためのショートカットを探しています(可能であればcd
)。
私はUbuntu 17.04でgit
2.11.0を使用しています。