初始化一個目錄cron(需要拉取的的是code下的cron目錄)
git init cron
進入目錄
cd cron/
git remote add -f code ssh://git@192.168.1.3:8080/test/test.git
git config core.sparsecheckout true
echo code/cron/ >> .git/info/sparse-checkout (這句是靈魂,是核心,是光,是電,是唯一的神話)
git pull ssh://git@192.168.1.3:8080/test/test.git master (選取分支拉取)