Re:Using Git Offline
by fjfaase on Tuesday January 09, 2024 @08:13AM
(#38925771)
It is also possible to exchange difference between different location using patch file with the git commands 'format-patch' and 'apply'. Patch file are usually a bit smaller and can also be easily mailed.
[ Parent
| on HN ]
A minor correction: it's usually preferable to apply commits with `git am` instead of `git apply`, as it applies the commit with all its metadata, not just the diff.
> Patch file are usually a bit smaller and can also be easily mailed.
The best way to email patches is to use `git send-email`. So that the receiver can directly apply it. It's easy to get it wrong when done manually.