I know there is some questions already around there as this one. In my case:
Let's say I have a repo R1 with a submodule SR2.
- I do a submodule commit in SR2.
- I commit the submodule update in R1
- I push the submodule update in R1
- I forgot to push in SR2
Then anyone who will clone repository R1 will get a reference is not a tree
error, because obviously the submodule commit revision is only available locally currently.
If I then type git status
in R1 repository, nothing warns me about the fact that my submodule is ahead of the remote repository.
If there any way to retrieve status recursively?