This page permanently redirects to gemini://log.pfad.fr/2023/git-send-email/.

Git send-email without format-patch

Git ships with built-in tools for collaborating over email. Sourcehut made a decent tutorial for it:

=> https://git-send-email.io/

I was successful in following the tutorial and submitting a couple of patches. After some attempts at improving my workflow, I think I will settle on the following:

Adding a self-destructive message

If you add three dashes (---) on a dedicated line in your commit message, everything afterward will be discarded when the patch is applied (using git am).

Commands after git clone:

# Check existing git config and adjust settings
git config --get-regex "^format\..*"
git config format.to "list@example.com"
git config format.subjectprefix "PATCH project"

Commands to send the patch:

# Submit a patch
git --amend                     # add a self-destructive message under a --- line
git send-email origin/master    # send the patch as email

Yes, it means that I am back to 2 commands, while still being able to resume from where I left off if anything fails.

=> [Attempt 2022] Git send-email with format-patch

📅 2023-05-03

=> Back to the index

=> Send me a comment or feedback

Proxy Information
Original URL
gemini://log.pfad.fr/2023/git-send-email
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
300.270756 milliseconds
Gemini-to-HTML Time
0.316316 milliseconds

This content has been proxied by September (3851b).