| /| /
|/ |/iki                                 Map  About  |  Page  New  Edit  History

Git Email
________________________________________________________________________________

[000] Index
________________________________________________________________________________

* Setup .................................................................. [001]
* GNU Pass ............................................................... [002]
* Sending ................................................................ [003]
* Applying Patches ....................................................... [004]

[001] Setup
________________________________________________________________________________

In gitconfig

```ini
[sendemail]
    smtpserver = {SMTP.SERVER.DOMAIN}
    smtpuser = {EMAIL}@{SOME.DOMAIN}
    ; ssl
    smtpencryption = ssl
    smtpserverport = 465
    ; smtpencryption = tls
    ; smtpserverport = 587
```

[002] GNU Pass
________________________________________________________________________________

```ini
[credential "smtp://{EMAIL}%40{SOME.DOMAIN}@{SMTP.SERVER.DOMAIN}:465"]
    ; important line, see https://stackoverflow.com/questions/79696018
    helper =
    helper = "!pass git/{EMAIL}@{SOME.DOMAIN}"
```

[003] Sending
________________________________________________________________________________

> TODO: gitmail>https://git-send-email.io/#step-4)

```bash
git add .
git commit -m "Commit message" # or `git commit` to open editor
git send-email --to="{MAINTIANER}@{SOME.DOMAIN}" HEAD^
```

[004] Applying Patches
________________________________________________________________________________

```bash
git apply --stat a_file.patch
git apply --check a_file.patch
git am < a_file.patch
```

________________________________________________________________________________

Alisa Lain (C) 2025-2026