GitHub 利用git下载项目内指定文件或者文件夹

在新文件夹内初始化git,并且连接到总项目地址(.git)

git init

git remote add -f origin https://github.com/qhduan/just_another_seq2seq.git

开启sparse checkout 模式,chatbot为文件(夹)路径,并拉取

git config core.sparsecheckout true

echo chatbot >> .git/info/sparse-checkout

git pull origin master

发布了52 篇原创文章 · 获赞 21 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/zhr1030635594/article/details/102593768
今日推荐