I have a git repository, and a git bundle file. I can checkout the repository, and apply the bundle on one machine. I would like to use this particular machine as a mirror for this repository, along with the changes from the bundle. However when I try to clone it, the bundle changes don't seem to come across.
This is what I do on machine-A:
git clone [email protected]/repo.git wget https://example.com/extra-upstream.bundle cd repo git fetch ../extra-upstream.bundle '+refs/heads/*:refs/remotes/extra/*' This seems to work fine so far - I have the changes I expected.
On machine-B I do the following:
git clone git@machine-A:/repo However only the upstream code is cloned, without the branches/remotes from the bundle. What am I missing?
git branchon machine-A (without options-r/-a).git branchon machine-A doesn't show the new branches. Is there a (reasonable) way to make the main idea work (to make all the changes fetchable from the bundle), or is it a lost cause from the start?