我想从git存储库下载/克隆单个文件夹。我的GitHub存储库包含多个文件夹。 我正在使用以下代码,但出现错误。 请指导我:
mkdir <repo>
cd <repo>
git init
git remote add -f origin <url>
git config core.sparseCheckout true
echo "some/dir/" >> .git/info/sparse-checkout
echo "another/sub/tree" >> .git/info/sparse-checkout
git pull origin master
错误:
重定向:https://fedsvc.com/ofis/public/ErrorBookmark.aspx?ID=0000