Extending KingCrunch and VonC's Great Answers
I combined them both:
git clone --mirror git@some.origin/reponame reponame.git cd reponame.git git bundle create reponame.bundle --all
After that, you have a file called reponame.bundle that you can easily copy. Then you can create a new normal git repository using git clone reponame.bundle reponame .
Note that git bundle only copies commits that result in some link (branch or tag) in the repository. Thus, convoluted commits are not stored in the bundle.
Kimmo Ahokas Jan 04 '19 at 13:58 2019-01-04 13:58
source share