#####################最好按顺序执行:
1.进入指定目录下,如langChain:
$ git init
2.连接远端库:
$ git remote add origin https://*****.git // 你的git仓库地址
3.启用"Sparse Checkout"功能:
$ git config core.sparsecheckout true
4.配置所需拉取的目录名称,如远程LangChain/tests/ :
$ echo tests/ >> .git/info/sparse-checkout
注意:子目录路径不包含clone的一级文件夹名称,直接写成:tests/ , 错误: /LangChain/tests/
5.执行拉取操作,注意分支,例如dev分支:
$ git pull http://gitlab.xx/LangChain.git dev
6.使用、修改
7.上传前add修改操作:
$ git add .
$ git status
mit添加备注
$ git commit -m ‘【v0.27.6】本地上传指定目录测试’
9.执行push上传:
$ git push origin dev
参考文章:/Michaelwubo/article/details/126407862?spm=1001.2101.3001.6650.6&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-6-126407862-blog-123476376.235%5Ev35%5Epc_relevant_increate_t0_download_v2_base&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-6-126407862-blog-123476376.235%5Ev35%5Epc_relevant_increate_t0_download_v2_base&utm_relevant_index=9
/xinzhi/66/340223.html
/weixin_46713695/article/details/125023995