使用一个node小工具:git-down-repo
npm install git-down-repo -g // 安装全局
// test
gitdown https://github.com/hua1995116/webchat // 下载整个仓库(默认master)
gitdown https://github.com/hua1995116/webchat dev // 下载某个仓库的dev分支
gitdown https://github.com/hua1995116/webchat/tree/master/config // 下载仓库某个文件夹
gitdown https://github.com/hua1995116/webchat/blob/master/config/dev.env.js // 下载某个文件
gitdown https://github.com/hua1995116/webchat/blob/master/config/dev.env.js https://github.com/hua1995116/webpack-plugin-inner-script/blob/master/index.js // 下载多个项目(空格分隔)