Git单独checkout子目录
2024-09-01 08:05:09
http://schacon.github.io/git/git-read-tree.html#_sparse_checkout
Existing Repository
If you already have a repository, simply enable and configure sparse-checkout as above and do git read-tree.
Enable sparse-checkout:
git config core.sparsecheckout true
Configure sparse-checkout by listing your desired sub-trees in .git/info/sparse-checkout:
echo some/dir/ >> .git/info/sparse-checkout
echo another/sub/tree >> .git/info/sparse-checkoutUpdate your working tree:
git read-tree -mu HEAD
可以略过第二步
1. git config core.sparsecheckout true
2 Update your working tree:
git read-tree -mu HEAD 3
git checkout [branch] -- fileName
最新文章
- Liunx下配置DNS服务
- CodeSmith7 系列 破解教程
- 今天发现一些很有意思的ubuntu命令
- Unity unsafe
- 1. 从系统架构到Hello World
- W3C标准
- python学习-day15:函数作用域、匿名函数、函数式编程、map、filter、reduce函数、内置函数r
- MVC4发布到IIS7报404错误
- awk 传入外部参数
- phpcms(4) V9 栏目管理
- oracle触发器使用总结
- SQL语句中的乘号
- programData
- JDK基本介绍
- 使用.NET REACTOR制作软件许可证
- python 字符串(汉语)获得MD5编码
- 利用C#进行Socket通信编程之二:一个实例
- Chapter 5 Blood Type——7
- Hexo自定义页面的方法
- springboot学习二:配置文件配置
热门文章
- unity笔录
- android教学大纲
- 每个Web开发者必备的9个软技能
- 对比git pull和git pull --rebase
- ansible尝试
- 深入分析Java Web开发
- 【ORACLE】“System.Exception: System.Data.OracleClient 需要 Oracle 客户端软件 version 8.1.7 或更高版本。”解决办法
- Linux用户相关命令
- .net core 12
- mongodb集群+分片部署(二)