How can I email someone a git repository?

后端 未结 2 1903
独厮守ぢ
独厮守ぢ 2020-11-22 09:29

I have tried:

git archive HEAD --format=zip > archive.zip

:and then I email archive.zip and at the other end they unzip archive.zip into

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-22 09:53

    As previous answer said, git bundle is the way.

    If you want to create a bundle from using only one branch (I prefer bundling only master) and sending over e-mail, you can do something like below:

    $ git bundle create /tmp/mygitbackup.bundle master

提交回复
热议问题