git bash下载指定单个文件目录或文件名
mkdir myrepo
cd myrepo
初始化git仓库
git init
添加远程
git remote add -f origin <origin_url>
配置sparse checkout
git config core.sparsecheckout true
添加要下载的目录
echo "api/*"> .git/info/sparse-checkout
下载
git pull origin master
mkdir myrepo
cd myrepo
git init
git remote add -f origin <origin_url>
git config core.sparsecheckout true
echo "api/*"> .git/info/sparse-checkout
git pull origin master