Do a “git export” (like “svn export”)?

后端 未结 30 2938
暖寄归人
暖寄归人 2020-11-21 22:33

I\'ve been wondering whether there is a good \"git export\" solution that creates a copy of a tree without the .git repository directory. There are at least thr

30条回答
  •  春和景丽
    2020-11-21 22:47

    Yes, this is a clean and neat command to archive your code without any git inclusion in the archive and is good to pass around without worrying about any git commit history.

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

提交回复
热议问题