Interview Prep/Git & GitHub/Conflicts, remotes, fetch, pull and push

What are `git bundle` and `git format-patch`/`git am` for?

AdvancedConceptConflicts, remotes, fetch, pull and push
Answer

A bundle packages objects and refs into one file for transfer without network access (air-gapped environments). format-patch emits emailable patch files and am applies them with authorship preserved, the workflow used by the Linux kernel.

git bundle create repo.bundle --all
git clone repo.bundle restored
git format-patch -3 -o patches/
git am patches/*.patch
All Git & GitHub questions Roadmap: Git & GitHub

More on Conflicts, remotes, fetch, pull and push