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

后端 未结 30 2900
暖寄归人
暖寄归人 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:50

    This will copy all contents, minus the .dot files. I use this to export git cloned projects into my web app's git repo without the .git stuff.

    cp -R ./path-to-git-repo /path/to/destination/

    Plain old bash works just great :)

提交回复
热议问题