git克隆忽略线上目录

Scroll Down

git clone --filter=blob:none --no-checkout http://gitlab.jiluoing.com/jiluo/zs-nfc/zs-nfc-ios.git
cd zs-nfc-ios
git sparse-checkout init --cone
打开 .git/info/sparse-checkout,添加

/*
!/SDK/

git read-tree -mu HEAD

// git sparse-checkout set .