在github/gitlab上下载单个文件
在github/gitlab上下载单个文件参考自:这里mkdir mycodecd mycodegit initgit remote add -f origin xxx.git #xxx是要下载的仓库git config core.sparsecheckout true。# 将sparsecheckout设为trueecho 仓库名/子文件夹/要下载的文件名(不带后缀) >> .git
·
在github/gitlab上下载单个文件
参考自:这里
mkdir mycode
cd mycode
git init
git remote add -f origin xxx.git #xxx是要下载的仓库
git config core.sparsecheckout true。# 将sparsecheckout设为true
echo 仓库名/子文件夹/要下载的文件名(不带后缀) >> .git/info/sparse-checkout
git pull origin master # 拉取文件
更多推荐
所有评论(0)