git获取一个项目的子文件夹

git init <repo>

cd <repo>

git remote add origin <url>

git config core.sparsecheckout true

echo "finisht/*" >> .git/info/sparse-checkout

git pull --depth=1 origin master
(git pull origin master)

猜你喜欢

转载自blog.csdn.net/boy560/article/details/88779704