github - 从 GitHub 下载目录

标签 github download wget

试图从 git 下载文件夹.
我试过 wget --no-parent -r http://WEBSITE.com/DIRECTORY也没有 --no-parent - 不工作。 curl对单个文件工作正常,我认为 wget应该得到文件夹 - 它可以做除此之外的所有事情。

按照建议尝试了许多选项 Using wget to recursively fetch a directory with arbitrary files in it没有工作

最佳答案

你应该试试:git clone <SSH> or <HTTPS>
也许这可以以一种简单的方式帮助您:
DownGit
所以,如果你改为使用 wget下载一个目录,试试这个。
它会将你的目标目录打包成 .zip ,所以你可以 curlwget它。

In default, value of fileName and rootDirectory is set to the name of the downloading file or directory. If you do not want to add the directory itself in the zip, then set rootDirectory=false. Like: this link- https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/MinhasKamal/DownGit/tree/master/res/images&rootDirectory=false, will download a file named images.zip; however the root directory- "images", will not be included in the zip.

If you want to download file- https://github.com/MinhasKamal/DownGit/blob/master/res/images/downgit.png with name- DownGitIcon.zip, then the link will be- https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/MinhasKamal/DownGit/blob/master/res/images/downgit.png&fileName=DownGitIcon



顺便说一句,我曾经使用 SVN 通过将 URL 路由到其 trunk 来从 Git 系统下载文件/目录。 .但是非常不方便。

关于github - 从 GitHub 下载目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58397935/

相关文章:

从服务器下载和保存大量图像时的 iOS 内存问题 (ARC)

php - 使用 htaccess 强制下载图像

linux - 非交互式命令行工具是什么意思?

git - Gist:如何将图像上传到 Gist?

git - 使用 Octokit.net 进行身份验证并使用 LibGit2Sharp 推送到 GitHub 存储库

swift - 无法使用我创建的 Cocoapod 代码

php - CSV 文件作为页面打开

curl - 如何从没有附加内容 URL 的下载按钮获取或 curl ?

android - Wget 或类似的 Android

github - 版本控制: How does forking a repository work on source code hosting facilities?