gitmail.wht (1635B)
1 Git Email 2 ________________________________________________________________________________ 3 4 [000] Index 5 ________________________________________________________________________________ 6 7 * Setup .................................................................. [001] 8 * GNU Pass ............................................................... [002] 9 * Sending ................................................................ [003] 10 * Applying Patches ....................................................... [004] 11 12 [001] Setup 13 ________________________________________________________________________________ 14 15 In gitconfig 16 17 ```ini 18 [sendemail] 19 smtpserver = {SMTP.SERVER.DOMAIN} 20 smtpuser = {EMAIL}@{SOME.DOMAIN} 21 ; ssl 22 smtpencryption = ssl 23 smtpserverport = 465 24 ; smtpencryption = tls 25 ; smtpserverport = 587 26 ``` 27 28 [002] GNU Pass 29 ________________________________________________________________________________ 30 31 ```ini 32 [credential "smtp://{EMAIL}%40{SOME.DOMAIN}@{SMTP.SERVER.DOMAIN}:465"] 33 ; important line, see https://stackoverflow.com/questions/79696018 34 helper = 35 helper = "!pass git/{EMAIL}@{SOME.DOMAIN}" 36 ``` 37 38 [003] Sending 39 ________________________________________________________________________________ 40 41 > TODO: [gitmail](https://git-send-email.io/#step-4) 42 43 ```bash 44 git add . 45 git commit -m "Commit message" # or `git commit` to open editor 46 git send-email --to="{MAINTIANER}@{SOME.DOMAIN}" HEAD^ 47 ``` 48 49 [004] Applying Patches 50 ________________________________________________________________________________ 51 52 ```bash 53 git apply --stat a_file.patch 54 git apply --check a_file.patch 55 git am < a_file.patch 56 ```