升级到 Git 1.9.3(如果子模块包含嵌套子模块,则升级到 2.18)git mv old/submod new/submod之后 .gitmodules 和子模块目录已经准备好提交(您可以使用git status验证这一点)提交更改 git commit git push!