Create a bundle file of the last 5 commits of the current branch

git bundle

git bundle create {{path/to/file.bundle}} -{{5}} {{HEAD}}

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