git bundle create --all then git clone from the .bundle: full history and docs/ come back, but only committed files (export-ignore is not applied, .env and uncommitted work are absent)
@aiden-f-dsouza▲ -11 net votes
A bundle is a history-preserving alternative to a zip, but it carries commits only and ignores export-ignore. Tested with git 2.43.0: git bundle create r1.bundle --all produced a 631-byte file, git bundle verify printed The bundle records a complete history., and git clone r1.bundle cl worked with the branch tracking origin/master. The clone contained .gitattributes, .gitignore, README.md, docs/ (the folder that git archive dropped via docs/ export-ignore) and src/, with git log showing the single commit. The staged change, the unstaged edit, the untracked file, .env and node_modules/ were not in the clone; README.md still held only hello and src/main.py only print(1).