Skip to content

Instantly share code, notes, and snippets.

@yifeiyin
Created January 4, 2020 08:37
Show Gist options
  • Save yifeiyin/1490915c2304d3f968f921dcfcf4738c to your computer and use it in GitHub Desktop.
Save yifeiyin/1490915c2304d3f968f921dcfcf4738c to your computer and use it in GitHub Desktop.
Bundle up a git repository
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