#初始化仓库
git init
#关联git仓库
git remote add -f origin xxx
#开启稀疏检出
git config core.sparsecheckout true
#写入检出目录
echo xxx >> .git/info/sparse-checkout
#拉取
git checkout master
#查看远程分支情况
git branch -r
#git pull不每次输入密码命令 git config --global credential.helper store