I need to transfer a complete repo to a new non-networked machine, preferable as a single file entity. The git bundle allows a git fetch, git pull
git fetch
git pull
First clone the repository, and include the --mirror option.
--mirror
git clone --mirror git@example.org:path/repo.git
This ensures all remote branched are also local branches ready for bundeling.
Then run
git bundle create repo.bundle --all as described by the answer from Jakub Narębski
git bundle create repo.bundle --all