how to download single folder OR file in gitlab repository
我有一个存储库。 在此存储库中,有多个文件夹可用。
我只需要在此存储库中的一个文件夹。
我已经尝试执行以下命令,但无法正常工作。
git克隆
有什么办法只能克隆git仓库的子目录吗?
Use a sparse checkout, available since version 1.7.0.
如果仅关注该文件夹的内容(而不是其历史记录),则因为Git Lab 1.11(2019年5月)而已,所以您只能下载一个文件夹。
Download archives of directories within a repository
Depending on the type of project and its size, downloading an archive of the entire project may be slow or unhelpful – particularly in the case of large monorepos.
In GitLab 11.11, you can now download an archive of the contents of the current directory, including subdirectories, so that you download only the files you need.
从发行24704:请参阅文档。