开发者

How to know if a git submodule commit is already pushed into the repository

开发者 https://www.devze.com 2023-03-08 16:57 出处:网络
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.At su

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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消