如何让git子模块成为普通文件夹?

时间:2016-10-13 18:31:01

标签: git

我有一个项目有许多子模块,我试图让它们充当普通文件夹而不是回购。我删除了每个文件夹中的.git/文件夹,但它们仍然像子模块一样,当我运行git status时,它们似乎不会显示为未跟踪的文件。

1 个答案:

答案 0 :(得分:2)

The submodule needs to be removed using git rm (this'll remove the submodule's files from your file system). You can then clone the submodule's repository into your repo (using git clone), remove the .git directory in the "submodule"'s directory, and git add!

相关问题