1. 初始化

    git submodule init

  2. 添加子项目

    git submodule add -b xxxx {path} -b 指定分支 path 可为空

  • (不知为何, 直接写在 .gitmodules 或者 .git/config 中编辑 无效, 必须使用 命令行才可以)
  1. 设置子模块分支

    git submodule set-branch -b develop {path}

  2. 克隆项目

    1. ​git clone --recursive xxxx (克隆并初始化子模块)
    1.    # 初始化方式 2
      git clone xxx
      cd xxx
      git submodule update --init

最新文章

  1. python图像卷积
  2. PHP中的中文截取乱码问题_gb2312_utf-8
  3. 位图9宫格 BitmapSlice9.jsfl
  4. 【JPA】表达条件查询的关键字
  5. ORACLE no1 存储过程插入更新表数据
  6. 看unix高级编程时遇到apue.h找不到的问题
  7. Appium--swipe滑动方法
  8. Python实战171201筛选数据
  9. numpy+plot初试
  10. Chapter6_访问权限控制_访问权限修饰词
  11. IDEA常用快捷键整理(Mac OS X版本)
  12. layer.open
  13. 盐城 - 开设IT公司的好地方
  14. 离线安装Cloudera Manager 5和CDH5(最新版5.9.3) 完全教程(六)CM的安装
  15. 从源码编译InfluxDB
  16. tftp 传输文件
  17. U3D中可以直接使用GL!!!
  18. EF 数据迁移
  19. C# Windows程序窗口置前台的几种方法
  20. Codeforces Round #289 (Div. 2, ACM ICPC Rules) E. Pretty Song 算贡献+前缀和

热门文章

  1. 【python自动化测试】1- python基础和pycharm使用
  2. JZOJ 3737. 【NOI2014模拟7.11】挖宝藏
  3. Ubuntu安装Zabbix6.0
  4. TCTrack
  5. Art of Illusion 一款**的开源 3D 建模和渲染软件
  6. C++ cannot bind non-const lvalue reference of type ‘Dog&’ to an rvalue of type ‘Dog’
  7. snowland-smx密码算法库
  8. RuntimeError: CUDA error: device-side assert triggered
  9. 如何批量删除office文档属性
  10. 新手必学matplotlib