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

后端 未结 30 2902
暖寄归人
暖寄归人 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 23:01

    By far the easiest way i've seen to do it (and works on windows as well) is git bundle:

    git bundle create /some/bundle/path.bundle --all

    See this answer for more details: How can I copy my git repository from my windows machine to a linux machine via usb drive?

提交回复
热议问题