我是靠谱客的博主 寒冷柜子,这篇文章主要介绍Git Best Practice,现在分享给大家,希望可以做个参考。

Initialization

 

  1. 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
  2. Now you already have updated code of module "***". But all the submodules are empty. You need to update them.
    git submodule update --init
  3. 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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(184)

评论列表共有 0 条评论

立即
投稿
返回
顶部