Questions tagged [git-bundle]

44 questions
2
votes
1 answer

Importing git bundle into gitlab

I've created a git bundle out of my repo and I'm trying to import it to gitlab. I've tried the API via curl command which gives me the error Error importing repository into root/api-project - No such file or directory @ rb_sysopen - [FILTERED] and…
2
votes
1 answer

How to do a "git bundle create --all" in JGit?

Is it possible to bundle a repository using JGit? I'm trying to do the equivalent of this git command: git --git-dir=path/to/my/local/repo bundle create path/to/backup.bundle --all
Pado
  • 1,497
  • 16
  • 28
2
votes
1 answer

Using git bundle to synch airgapped repos

I'm running into a problem whereby I want to synch 2 repositories that are not connected via network. I have used git bundle to synch between the two, but have run into a corner case. I'm creating the git bundle via: git bundle create…
2
votes
1 answer

Track files but exclude them from a git bundle

I have a somewhat complex ansible workflow. I have two airgapped networks. I develop playbooks on both networks, so I have two somewhat independent ansible repositories managed by git. At the same time, most of the playbooks can be used in both…
2
votes
1 answer

restore gitlab backup repository bundle file with all branches

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…
kannix
  • 5,107
  • 6
  • 28
  • 47
2
votes
1 answer

Transferring changes made to multiple branches using git-bundle

I was looking for git-bundles as an option to keep my 2 repositories (being continuously worked on) in sync with each other. Since both are two different geographical locations and setting up a VPN is also not an option I plan to use bundles..(Any…
Mudassir Razvi
  • 1,783
  • 12
  • 33
2
votes
1 answer

git bundle with git-svn

I am trying to use git-bundle with a git-svn repo. Essentially, I need to create an offline git repo that has a clone of our production SVN system. The SVN repository is cloned through git-svn, which works great. It clones our code, and lists it…
jon
  • 293
  • 4
  • 12
1
vote
0 answers

Git - Comparing local bundle with remote repository using refs only

I've written an open-source app to clone remote repos from well-known Git hosting providers and create bundles from them, for backup purposes. Subsequent runs of the app re-clone, re-bundle, and compare size and hash to determine if it's a new…
jonhadfield
  • 119
  • 1
  • 1
  • 9
1
vote
1 answer

git bundle not moving 'git tag' information

I have a remote repo with tag names v3 and v4 $git tag v3 v4 I created a bundle for this remote repo with.. git bundle create repo.bundle --all When updating local repo with bundle information... git pull 'path_to_bundle'…
Jay
  • 111
  • 10
1
vote
1 answer

How can I send someone the most recent version of one branch of my git repo without version control history?

I'm trying to send someone a copy of the current state of one branch on my Git repository. He doesn't have access to the repository itself and doesn't need version control history. I would also like to send the file over email, so including…
zaen
  • 326
  • 3
  • 14
1
vote
0 answers

Move not pushed commits to the repository on another machine without remote repository

Same remote repository is cloned (up to date) on two different machines (Home and Office) - On Home machine I have added 3 commits (Not pushed to the remote) - Created a bundle file by git bundle create fizz-buzz-app.bundle --all git log for…
Basin
  • 887
  • 1
  • 14
  • 28
1
vote
1 answer

Offline syncing of locally-central git repositories

We have two different teams, each in its own location, working with git, each location having a reference repository. Each location has a access to an enterprise network, but the two networks cannot be directly connected (trust me, we asked): we can…
Pierre Lebeaupin
  • 1,103
  • 8
  • 20
1
vote
2 answers

Splitting git bundle file

Is there any way to split a git bundle file? In say, repo.bundle1 and repo.bundle2, each containing half of the repo. The portable bundle is too large in size for transfer. How else could I approach this assuming the maximum size allowed for…
C_B
  • 2,620
  • 3
  • 23
  • 45
1
vote
1 answer

git bundle stashed code

I have a specific set of code stashed in git and would like to bundle it up in order to transfer it to a different clone on a separate PC, but I have not figured out how to reference the stash in the bundle command. stash@{0}: On issue/789:…
E-rich
  • 9,243
  • 11
  • 48
  • 79
1
vote
1 answer

Reset "branch ahead" when using a bundle

In my current workflow, I get a git bundle, which I unpack: $ git bundle unpack new.bundle code and then I add patches to it: $ git am *.patch git log shows that the patches were committed; however, when I run git status, it says Your branch is…
kirill_igum
  • 3,953
  • 5
  • 47
  • 73