restoring git repository from bundle backup

后端 未结 3 1779
情歌与酒
情歌与酒 2021-01-31 08:32

i created backups of my git repository like in How to backup a local Git repository? proposed with

git bundle create /tmp/foo-all --all

I can s

3条回答
  •  走了就别回头了
    2021-01-31 09:05

    Short answer:

    $ git bundle verify $somewhere/foo.bundle
    $ git clone $somewhere/foo.bundle
    Cloning into 'foo'...
    Receiving objects: 100% (10133/10133), 82.03 MiB | 74.25 MiB/s, done.
    Resolving deltas: 100% (5436/5436), done.
    $ cd foo
    $ git status
    ...
    

    Lazy Badger said this, but it's in the last paragraph. :)

提交回复
热议问题