赞
踩
添加:git submodule add 子模块仓库地址 子模块在父模块目录下的存储路径。注意:路径不能以 / 结尾(会造成修改不生效)、不能是现有工程已有的目录(不能順利 Clone)
删除:首先删除 .gitmodules 文件下的对应子模块信息,然后 git rm –cached
拉取submodule: git submodule update --init --recursive
git submodule update --remote
或者在 submodule 打开 git bash,然后用 git pull 拉取项目
——————————————————华丽丽的分割线——————————————————
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。