git下载仓库内部分文件
首选DownGit
'childfile'替换为自己要下载的文件夹名称
git init test && cd test //新建仓库并进入文件夹
git config core.sparsecheckout true //设置允许克隆子目录
echo 'recommendation*' >> .git/info/sparse-checkout //设置要克隆的仓库的子目录路径 //空格别漏
git remote add origin git@github.com:mygithub/test.git //这里换成你要克隆的项目和库
git pull origin master //下载
报错ssh: connect to host github.com port 22: Connection timed outfatal: Could no…
修改ssh的端口号
在.ssh下面建立config文件
Host github.com
User git
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Port 443