Home » Computer » Git 內類似 svn export 的功能

git-archive

預設是輸出成 tar 格式到 stdout,所以可以用下面的指令取出一份 archive:

mkdir ../working
git archive master | tar -x -C ../working

One Reply to “Git 內類似 svn export 的功能”

  1. mzlogin says:

    如何直接从网络上export出来呢?

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*

Archives