Git - 指定 Branch 匯出原始碼不含版本控制資訊


匯出 master 的內容並打包:

  $ git archive master | tar -x -C /somewhere/else


指定特定格式,匯出然後壓縮,如匯出成 *.zip:

  $ git archive --format zip --output /full/path/to/zipfile.zip master

留言

這個網誌中的熱門文章

Heroku + Bootstrappers 快速佈署

php/symfony - 在 ubuntu 執行 composer install 出現 "ext-curl *", "ext-gd *", "lib-icu" 的相依錯誤訊息

Git - 同時 push 到多個 remote