We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
参考地址:https://gist.github.com/myusuf3/7f645819ded92bda6677
.gitmodules
git add .gitmodules
.git/config
git rm --cached xxxx(子模块路径)
rm -rf .git/modules/xxxx(子模块路径)
git commit -m "删除子模块"
rm -rf xxxx(子模块路径)
To remove a submodule you need to:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
如何优雅地删掉 Git submodule (How effectively delete a git submodule)
参考地址:https://gist.github.com/myusuf3/7f645819ded92bda6677
步骤
.gitmodules
文件中删除对应子模块的节(section)git add .gitmodules
命令将.gitmodules
文件添加到待提交区.git/config
文件中删除对应子模块的节(section)git rm --cached xxxx(子模块路径)
命令rm -rf .git/modules/xxxx(子模块路径)
命令git commit -m "删除子模块"
命令提交删除操作rm -rf xxxx(子模块路径)
将子模块彻底从项目中删除原文
To remove a submodule you need to:
The text was updated successfully, but these errors were encountered: