close
因為某些原因所以我嘗試如何去抓GIT來源下的某個目錄資料。研究了一下,發現其實可以辦的到不過好像必須要在git 1.6.0之後才資源 :p
ref: https://git.wiki.kernel.org/index.php/GitFaq#How_do_I_clone_a_subdirectory.3F
其實就是利用 Git 的 archive的能力而已 :p
$ git archive --remote=<遠端來源> <分支> <目錄> | tar xv
全站熱搜