Skip to content

Instantly share code, notes, and snippets.

@victorhcm
Forked from maxivak/readme.md
Created July 5, 2024 13:54
Show Gist options
  • Select an option

  • Save victorhcm/5db87b2d55f63ca9780fccee416e4501 to your computer and use it in GitHub Desktop.

Select an option

Save victorhcm/5db87b2d55f63ca9780fccee416e4501 to your computer and use it in GitHub Desktop.

Revisions

  1. @maxivak maxivak revised this gist Aug 28, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,7 @@ Gitlab exports repositories to tar archive which contains .bundle files.

    We have repo.bundle file and we want to restore files from it.

    * create bare repo from bundle file

    ```
    git clone --mirror myrepo.bundle my.git
  2. @maxivak maxivak revised this gist Aug 28, 2017. No changes.
  3. @maxivak maxivak revised this gist Aug 28, 2017. 1 changed file with 35 additions and 0 deletions.
    35 changes: 35 additions & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -2,3 +2,38 @@ Gitlab exports repositories to tar archive which contains .bundle files.

    We have repo.bundle file and we want to restore files from it.


    ```
    git clone --mirror myrepo.bundle my.git
    ```

    This will create a folder my.git which contains a bare repository.


    Now we will restore data from a bare repo into our folder

    ```
    mkdir output
    cd my.git
    git archive master | (cd ../output && tar x)
    ```

    Now folder output has all files from the repo.
    We can copy files to any destination.




    ## Misc

    * working with .bundle files

    ```
    git bundle verify myrepo.bundle
    git bundle unbundle myrepo.bundle
    ```


  4. @maxivak maxivak created this gist Aug 28, 2017.
    4 changes: 4 additions & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    Gitlab exports repositories to tar archive which contains .bundle files.

    We have repo.bundle file and we want to restore files from it.