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
More on Conflicts, remotes, fetch, pull and push
What do conflict markers look like and how do you resolve them?BeginnerWhat is `merge.conflictStyle=zdiff3` and why use it?IntermediateHow do you quickly take one side's version for a conflicted file?IntermediateWhat are stages 1, 2 and 3 in the index during a conflict?AdvancedHow do you see what a merge conflict is about before resolving?IntermediateWhat is the difference between `git fetch` and `git pull`?Beginner