git.org (1306B)
1 * ~send-email~ with ~.authinfo.gpg~ 2 ** Step 1: Install ~git-credential-netrc~ 3 AFAICT not all distributions package this script? As far as those I 4 use are concerned: 5 6 - On Debian, the =git= package brings 7 =/usr/share/doc/git/contrib/credential/netrc/git-credential-netrc.perl=, 8 but the file is not executable, so it's not as simple as symlinking 9 it from =~/.local/bin=: it must be =cp='ed and =chmod='ed. 10 11 - openSUSE does not include anything from =contrib=, I think? So just 12 grab =contrib/credential/netrc/git-credential-netrc.perl= from the [[https://git.kernel.org/pub/scm/git/git.git/][Git 13 repository]], stick it in =~/.local/bin= and =chmod= it. 14 15 Now ~git help --all | grep credential-~ should show =credential-netrc=. 16 17 ** Step 2: Configure ~git send-email~ 18 In =~/.gitconfig=, assuming a GMail account for =luser@gmail.com=: 19 20 #+begin_src conf 21 [sendemail] 22 smtpencryption = tls 23 smtpserver = smtp.gmail.com 24 smtpuser = luser 25 smtpserverport = 587 26 #+end_src 27 28 Most =send-email= guides seem to use the full email address for 29 =smtpuser=; I'm putting in just the /local-part/, since that's what is in 30 my =~/.authinfo.gpg=. 31 32 ** Step 3: Configure ~git-credential~ 33 In =~/.gitconfig=: 34 35 #+begin_src conf 36 [credential] 37 helper = netrc 38 #+end_src 39 40 ** Step 4: Enjoy 📨