如何正确移动git子模块?

时间:2014-04-12 07:05:35

标签: git git-submodules

我在github上有一个包含子模块的git repo。我想将子模块移动到一个新目录。我得到的最接近的是:

git submodule add --name new git://github.com/a/b new
git rm -r --cached old
git add .gitmodules new
git commit -m "move submodule from old to new"

效果不错但打印

warning: unable to rmdir old: Directory not empty

每当有人结帐我的回购并且之前已经运行git submodule update --init

如何进行提交,指示客户端的git删除该目录?

0 个答案:

没有答案
相关问题