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


匯出 master 的內容並打包:

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


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

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

留言