git bundle create repo.bundle --all

Category: Git - Advanced

git bundle create repo.bundle --all

Package the repo into a single file

Writes the entire repository, including all branches and tags, into one portable bundle file. Transfer the file to another machine and clone or fetch from it without any network. It is the standard offline transfer and backup format.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.