Initialization
- Clone module from repository URL (in a git bash)
git clone https://*******.git
When finished, you will find a directory called "***" in the current directory. You can change directory into it.
cd sdp - Now you already have updated code of module "***". But all the submodules are empty. You need to update them.
git submodule update --init - You have each submodule checkout at a specific commit according to "HEAD" file in .git directory. But the commit may not be the newest commit on master branch. The following commands are optional to make each submodule all at newest commit.
git submodule foreach git checkout master
git submodule foreach git pull --rebase origin master
最后
以上就是寒冷柜子最近收集整理的关于Git Best Practice的全部内容,更多相关Git内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复