TIL about `git format-patch` and `git am` 😆 These are coming from a different time period of the history of human kind lol
Conversation
I just remember now that I know some of my followers host their own Git repo and use emails for patches😅I'm so sorry! I understand the motivation, it's really inconvenient, but I salute the effort for owning your data and not support things you don't believe in
2
10
Replying to
Hosting it yourself doesn't require doing it via email.
Gerrit is nicer than the GitHub workflow. It's much better at review and doesn't require making a fork on the site to submit patches. My reason to use GitHub is that it covers more things and people have accounts already.
1
1
On GitHub, you can add .patch to the end of a commit URL and it will give you a patch file.
One common use I have for patch files is to apply a change across repositories without shared history. For example, setting up CI via .github for different projects in the same language.
2
1
3
You can cherry pick commits between two unrelated repos with plain git 😀
1
1
Yeah, but it can be awkward to deal with it. I don't like having a bunch of weird remotes. I often use fetch and FETCH_HEAD for different kinds of workflows.
I think if you git fetch by URL you can then cherry pick the commits from that repo without polluting your remotes. But maybe it affects FETCH_HEAD and that's what you meant? 😅
1
1
I mean that when you fetch a repo it becomes FETCH_HEAD so you can cherry-pick FETCH_HEAD or a specific number of commits from it without having to figure out their commit hashes. It's just often a lot easier to work with patch files sometimes.
2


