用所有分支恢复gitlab备份存储库包文件 [英] restore gitlab backup repository bundle file with all branches
问题描述
我需要从gitlab备份中恢复一些存储库。该备份包含所有回购的.bundle文件。
如果我运行 git bundle list-heads myfile.bundle $ c $如何恢复所有分支的完整存储库? c>我可以看到所有的分支。
我想要在所有分支本地恢复该repo,以将其推送到新的/空的gitlab存储库。 b
$ b
我尝试过使用git clone,git将所有其他技巧都找到,但只会导致只有主分支的repo。
如果软件包是用所有分支创建的,你应该能够在 git clone --mirror之后看到所有分支
:
git clone --mirror / path / to / your / bundle yourRepo .git
注意 .git
--mirror会创建一个 裸露的repo 。
I need to restore some repositories from an gitlab backup. This backup contains .bundle files for all the repos. How can I restore the complete respository with all branches in it?
If I run git bundle list-heads myfile.bundle
I can see all the branches.
I want to restore that repo locally with all branches to push it to a new/empty gitlab repository.
I've tried to use git clone, git pull all other tricks i could find but that only leads to a repo with only the master branch in it.
If the bundle was create with all branches, you should be able to see all the branches after a git clone --mirror
:
git clone --mirror /path/to/your/bundle yourRepo.git
Note the .git
since the --mirror would create a bare repo.
这篇关于用所有分支恢复gitlab备份存储库包文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!