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)
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)
本文标题:git获取一个项目的子文件夹
本文链接:https://www.haomeiwen.com/subject/ffauvqtx.html
网友评论