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即可。

最新文章

  1. SQL Server中的Merge关键字
  2. 谢欣伦 - 原创软件 - 游戏专题 - 我的桌面My Desktop
  3. Metro-Ural119递推
  4. Git 版本库添加空目录方法
  5. 面试题:Integer和int的区别?在什么时候用Integer和什么时候用int
  6. Python time datetime常用时间处理方法
  7. 使用JspStudy集成环境快速部署jsp项目
  8. js原生捕鱼达人(一)
  9. 使用Java中间MessageDigest该文本MD5加密(Java中间MD5样品加密算法演示)
  10. Exception in thread "main" java.lang.IllegalArgumentException
  11. Visual Studio 2010利用libxl读写excel表格数据
  12. kettle 通用的数据库迁移流程
  13. 跟我一起学python(1)
  14. React之todo-list
  15. git reflog
  16. Redis中的key的通用操作
  17. [Tensorflow] RNN - 02. Movie Review Sentiment Prediction with LSTM
  18. 在dosbox窗口显示a~z
  19. freeSSHd (Auth fail)错误!以及Xmanager的(ssh服务器拒绝了密码,请再试一次)错误!
  20. defaultProps和propTypes

热门文章

  1. Vim设置括号自动补全和快速跳出
  2. Download rtsp.c
  3. jQuery Tab选项卡切换代码
  4. BZOJ 1650 [Usaco2006 Dec]River Hopscotch 跳石子:二分
  5. html5--1.9 img元素嵌入图片
  6. tensorflow 实现逻辑回归——原以为TensorFlow不擅长做线性回归或者逻辑回归,原来是这么简单哇!
  7. Nginx HTTP Server相关
  8. Vue 中数据流组件
  9. Java面试知识点总结(1)
  10. CF-816A