如何下载工程中git submodule内容

栏目: 编程工具 · 发布时间: 6年前

内容简介:在开发过程中,经常有这样的事情,当你在一个项目上工作时,你需要在其中使用另外一个项目,比如至于当一个工程中有

在开发过程中,经常有这样的事情,当你在一个项目上工作时,你需要在其中使用另外一个项目,比如 golangvendor 包管理,经常就会希望抽取出来做成一个公共库来提供给别的工程来使用,git的 git submodule 就是为了解决这一个问题

至于 git submodule 的具体使用我就不多说了,感兴趣的小伙伴可以去看看 git工具-子模块

当一个工程中有 .gitsubmodule 文件时,执行 git clone 并不会自动下载子模块的内容,此时需执行如下命令:

git submodule update --init --recursive

将子模块内容下载下来后工程才不会缺少相应的文件

happy coding!

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Complexity and Approximation

Complexity and Approximation

G. Ausiello、P. Crescenzi、V. Kann、Marchetti-sp、Giorgio Gambosi、Alberto M. Spaccamela / Springer / 2003-02 / USD 74.95

This book is an up-to-date documentation of the state of the art in combinatorial optimization, presenting approximate solutions of virtually all relevant classes of NP-hard optimization problems. The......一起来看看 《Complexity and Approximation》 这本书的介绍吧!

html转js在线工具
html转js在线工具

html转js在线工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具