无需克隆整个仓库,下载Github特定文件夹内的文件

注意:此方法对Git-LFS方式上传的文件可能无效!!!

一.打开PowerShel运行命令

在 Windows 中,可以通过以下步骤打开 PowerShell 终端:

  1. 使用搜索功能:

    • 点击 Windows 按钮(开始菜单左下角的 Windows 图标)。
    • 在搜索框中键入 "PowerShell" 或 "Windows PowerShell"。
    • 在搜索结果中,选择 "Windows PowerShell" 或 "Windows PowerShell ISE"。
  2. 使用菜单:

    • 右键点击 Windows 按钮(开始菜单左下角的 Windows 图标)。
    • 选择 "Windows PowerShell" 或 "Windows PowerShell ISE"。
  3. 使用运行命令:

    • 按下 Win + R 组合键,打开运行对话框。
    • 键入 powershellpowershell_ise,然后按 Enter 键。

二.下载仓库文件

2.1下载公开仓库文件

$owner = " Your owner"
$repo = "Your  repo"
$branch = "Your branch"
$path = "Your path"

# API 请求 URL
$url = "https://api.g
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

NJU_AI_NB

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值