Suppose you have a repository called super and a submodule called sub. Stand in super, I’d like to know if sub last commit is already pushed to the repository or if it’s local.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
At super> “git status” will show you “modified: submodule/sub (new commits)” if the local sub is at a different commit point than the local super’s committed submodule.
At sub> “git log origin/master..master” will show you commits from the pushed ‘master’ branch and local ‘master’ branch, if any.
Does this answer your question? If not, please clarify.