How to see which commit a git submodule points at
As the other answers explain, you can use two commands: git submodule status, or git ls-tree HEAD, taking only the lines where the second column is commit (if you have awk you can use git ls-tree HEAD | awk ‘$2 == “commit”‘). However, these commands give different results! What’s the difference? git submodule status always … Read more