git submodule一些操作

checkout指定tag

cd /path/to/yoursubmodule git checkout yourTag cd .. git add yoursubmodule git commit -m "use submoduile at tag xx" git push


http://stackoverflow.com/questions/18755933/create-a-git-submodule-from-a-specific-repo-hash-or-tag

删除submodule


从 .gitmodule 文件里面删掉关于 vendor/plugins/will_paginate 的配置信息
git rm –cached vendor/plugins/will_paginate 
现在可以重新添加了
http://huacnlee.com/blog/how-to-remove-submodule-in-git/

posted @ 2015-09-30 10:18  waytofall  阅读(456)  评论(0编辑  收藏  举报