Created
January 4, 2020 08:37
-
-
Save yifeiyin/1490915c2304d3f968f921dcfcf4738c to your computer and use it in GitHub Desktop.
Bundle up a git repository
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Objective: | |
Archive a git repository including with all commit history into one file. | |
To bundle: | |
``` | |
git bundle create /path/to/destination/bundle/file --all | |
``` | |
To unbundle: | |
``` | |
git clone /path/to/existing/bundle/file the-new-repo-name | |
``` | |
Source: | |
`git help bundle` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment