News for hackers. Stuff that matters.
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.
Re:Using Git Offline by vifon on Tuesday January 09, 2024 @08:59AM (#38926223)
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.
Re:Using Git Offline by palata on Tuesday January 09, 2024 @11:55AM (#38928427)
> 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.