1.這里我需要從git上拉去項目中的叫fileName文件夾沦寂,步驟如下:
$ git init //git初始化
$ git remote add -f origin http://githhub/projectName.git //添加遠程倉庫地址
$ git config core.sparsecheckout true //開啟sparse checkout功能
$ echo "fileName" >> .git/info/sparse-checkout //fileName需要拉去的文件夾名稱
$ cat .git/info/sparse-checkout //查看配置文件信息
$ git pull origin master //拉取遠程哪個分支的文件目錄矗烛,這里是master上的分支