从git仓库下载 单个文件或者文件夹
转载自:https://www.cnblogs.com/yaolaoer/p/14564985.html
- 下载单个文件到压缩包:aab.zip
git archive --remote=ssh://gerrit.mot.com:29418/scm_tools/odm_tools sandbox/abc/master create_pointline_views_with_jobs.py --output=aab.zip
git archive --remote=ssh://gerrit.mot.com:29418/scm_tools/odm_tools sandbox/abc/master create_pointline_views_with_jobs.py | tar -xO > create_pointline_views_with_jobs.py - 下载一个目录至压缩包:job_templates.zip
git archive --remote=ssh://gerrit.mot.com:29418/scm_tools/odm_tools sandbox/abc/master job-templates/ --output=job_templates.zip
浙公网安备 33010602011771号