在github上下载子文件夹(svn命令)
2024-09-29 13:43:23
Q: 平时都是用git clone这个命令从github中克隆出完整的文件,但有时我们仅需要其中某个文件夹时,该如何下载?
A: 可以使用svn命令来完成。
具体用法:(以视觉slam14讲的github为例 https://github.com/gaoxiang12/slambook)
假设我们需要下载ch5/joinMap/depth这个文件夹,只需找到该文件夹的url: https://github.com/gaoxiang12/slambook/tree/master/ch5/joinMap/depth
将 /tree/master 替换为 /trunk ,即
https://github.com/gaoxiang12/slambook/trunk/ch5/joinMap/depth
(若不是master分支,而是其他分支,则将/trunk改为/branches/branchname。假设是develop分支,则将/trunk改为/branches/develop。)
在终端中进入slambook/ch5/joinMap文件夹下,输入命令:
svn checkout https://github.com/gaoxiang12/slambook/trunk/ch5/joinMap/depth
若提示“树冲突于···” ,输入p即可。
最新文章
- SQL Server中的Merge关键字
- 谢欣伦 - 原创软件 - 游戏专题 - 我的桌面My Desktop
- Metro-Ural119递推
- Git 版本库添加空目录方法
- 面试题:Integer和int的区别?在什么时候用Integer和什么时候用int
- Python time datetime常用时间处理方法
- 使用JspStudy集成环境快速部署jsp项目
- js原生捕鱼达人(一)
- 使用Java中间MessageDigest该文本MD5加密(Java中间MD5样品加密算法演示)
- Exception in thread ";main"; java.lang.IllegalArgumentException
- Visual Studio 2010利用libxl读写excel表格数据
- kettle 通用的数据库迁移流程
- 跟我一起学python(1)
- React之todo-list
- git reflog
- Redis中的key的通用操作
- [Tensorflow] RNN - 02. Movie Review Sentiment Prediction with LSTM
- 在dosbox窗口显示a~z
- freeSSHd (Auth fail)错误!以及Xmanager的(ssh服务器拒绝了密码,请再试一次)错误!
- defaultProps和propTypes