概述
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 Best Practice所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复