问题: I have my Git repository which, at the root, has two sub directories: 我有我的Git存储库,它的根目录有两个子目录: /finisht /static When this was in SVN , /finisht was checked out in one place, while /static was checked out elsewhere, like so: 在 SVN中时 , /finisht 在一个位置检出,而 /static 在其他地方检出,如下所示: svn co svn+ssh://admin@domain.com/home/admin/repos/finisht/static static Is there a way to do this with Git? 有没有办法用Git做到这一点? 解决方案: 参考一: https://stackoom.com/question/2W6h/如何仅克隆Git存储库的子目录 参考二: https://oldbug.net/q/2W6h/How-do-I-clone-a-subdirectory-only-of-a-Git-repository 来源: oschina 链接: https://my.oschina.net/u/4438370