Skip to content

Instantly share code, notes, and snippets.

@zhuweiyou
Last active August 22, 2023 02:22
Show Gist options
  • Save zhuweiyou/44bd498099a3b4f501b12fd14e64111e to your computer and use it in GitHub Desktop.
Save zhuweiyou/44bd498099a3b4f501b12fd14e64111e to your computer and use it in GitHub Desktop.
用 svn 下载 git 仓库子文件夹

把 URL 中的 /tree/main 替换为 /trunk/branches/分支名

下载主分支的子文件夹

svn checkout https://github.com/{user_name}/{repo_name}/trunk/子文件夹路径

下载其它分支的子文件夹

svn checkout https://github.com/{user_name}/{repo_name}/branches/{branch_name}/子文件夹路径
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment