I'm just getting started with git send-mail for a sourcehut project, so far so good.
My current .gitconfig looks like this:
[user]
email = johndoe@host.com
name = John Doe
signingkey = <mysignkey>
[commit]
gpgsign = true
[format]
subjectPrefix = [PATCH]
[sendemail]
smtpserver = smtp.johndoe.com
smtpuser = johndoe@host.com
smtpencryption = ssl
smtpserverport = 465
smtppass = my-password-in-clear-text
Is there a way to set smtppass
with a pass
+ sed
instead of having it in clear text?
I'm using pass
, usually I'm setting it up with a passcmd pass show host.com/johndoe.com | sed -n '3p
but I don't know how I can do that in .gitconfig.