一 安装svn

二 替换url

  • 如果要下载的文件在仓库的 master 分支 https://github.com/bigwhite/experiments/tree/master/tcp-stream-proto 中的tree/master 替换为 trunk https://github.com/bigwhite/experiments/trunk/tcp-stream-proto

  • 如果不是 master 分支 将 /tree/ 改为 /branches/ 譬如 https://github.com/UserName/ProjectName/tree/develop/ch01 修改后 https://github.com/UserName/ProjectName/branches/develop/ch01

三 svn下载即可

导出(export)或是检出(checkout),区别在于前者仅导出文件,后者保留 svn 提交记录。Git 项目的 svn 记录由 cvs2svn 自动生成,实测使用 export 更快。

svn export https://github.com/bigwhite/experiments/trunk/tcp-stream-proto