How do I fetch/re-push a submodule in git?

时光怂恿深爱的人放手 提交于 2019-12-01 12:24:33
VonC

As I explained this morning in "How to solve this Git issue?", this (ie '<folder_name> → <SHA> [<SHA>]') is not a submodule.

A submodule is composed of:

If you record only the SHA1, but not the url, you will have something like:

A git clone --recursive won't be able to clone the repo with that SHA1, because it does not know its url.

If you want to reference a subproject as a submodule:

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!