git submodule .gitmodules 子模块
2024-09-08 18:20:15
初始化
git submodule init
添加子项目
git submodule add -b xxxx {path}
-b 指定分支 path 可为空
- (不知为何, 直接写在 .gitmodules 或者 .git/config 中编辑 无效, 必须使用 命令行才可以)
设置子模块分支
git submodule set-branch -b develop {path}
克隆项目
git clone --recursive xxxx
(克隆并初始化子模块)
# 初始化方式 2
git clone xxx
cd xxx
git submodule update --init
最新文章
- python图像卷积
- PHP中的中文截取乱码问题_gb2312_utf-8
- 位图9宫格 BitmapSlice9.jsfl
- 【JPA】表达条件查询的关键字
- ORACLE no1 存储过程插入更新表数据
- 看unix高级编程时遇到apue.h找不到的问题
- Appium--swipe滑动方法
- Python实战171201筛选数据
- numpy+plot初试
- Chapter6_访问权限控制_访问权限修饰词
- IDEA常用快捷键整理(Mac OS X版本)
- layer.open
- 盐城 - 开设IT公司的好地方
- 离线安装Cloudera Manager 5和CDH5(最新版5.9.3) 完全教程(六)CM的安装
- 从源码编译InfluxDB
- tftp 传输文件
- U3D中可以直接使用GL!!!
- EF 数据迁移
- C# Windows程序窗口置前台的几种方法
- Codeforces Round #289 (Div. 2, ACM ICPC Rules) E. Pretty Song 算贡献+前缀和
热门文章
- 【python自动化测试】1- python基础和pycharm使用
- JZOJ 3737. 【NOI2014模拟7.11】挖宝藏
- Ubuntu安装Zabbix6.0
- TCTrack
- Art of Illusion 一款**的开源 3D 建模和渲染软件
- C++ cannot bind non-const lvalue reference of type ‘Dog&;’ to an rvalue of type ‘Dog’
- snowland-smx密码算法库
- RuntimeError: CUDA error: device-side assert triggered
- 如何批量删除office文档属性
- 新手必学matplotlib