您的存储库不包含任何子模块的代码,它仅存储指向子模块中某些提交的指针
因此,如果您想对第三方子模块进行修改,则应该 $ cd /path/to/submodule/in/your/work/tree # enter your submodule directory $ git fetch origin # update $ git checkout origin/master # take in the modifications $ cd /path/to/your/work/tree $ git add /path/to/submodule/in/your/work/tree # add your modification for submodule pointer $ git commit -m "update xxx module to x.x.x.x" # commit
希望我能帮助您!
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句