git submodule summary
komutu, ne istediğinizi (çoğunu) verecektir. Örnek olarak ansible deposunu kullanacağım, çünkü onunla ilişkili birkaç alt modüle sahip.
$ git pull
üzerinden güncel benim submodules şimdi olduğunu görebilirsiniz:
$ git status
On branch devel
Your branch is up-to-date with 'origin/devel'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: lib/ansible/modules/core (new commits)
modified: lib/ansible/modules/extras (new commits)
Ben kaydedilmesini bir özetini almak için git submodule summary
komutunu kullanabilirsiniz
bazı güncellemeler çekerek sonra altmodule sürümü şu anda kontrol edildi ve depodaki sürüm:
$ git summary lib/ansible/modules/core
* lib/ansible/modules/core 2f46c35...f15000d (46):
< fix win_user type checking
< git still needs to have abspath applied to dest
< Wrap calls to main() with if check
< handles config replace properly in eos_template
...
Bu, her bir işlemin ilk satırını gösterir; Ben detaylı bilgi isterseniz, ben ilk satırında görüntülenen işlemek aralığını kullanabilirsiniz çıkışı (2f46c35...f15000d
): taahhüt
$ git submodule update
$ cd lib/ansible/modules/core
$ git log 2f46c35...f15000d
Biz ilk alt modülünü güncelleştirmek, şimdiki kadar getirmek için ve o zaman git submodule summary
tarafından verilen işlem aralığını kullanarak bu depoda git log
'u çalıştırın.