Create a bundle file that contains all objects and references of a specific branch

git bundle

git bundle create {{path/to/file.bundle}} {{branch_name}}

click the source code to copy install git bundle on any operating system with command-not-found.com