Setup git send-email: following these instructions I had some problems. But the following worked:
-
I’m using 2-factor auth on my gmail account so I had to get a “app-password”, see google documentation
-
Modify the global/local .gitconfig file with a sendemail section: [sendemail] smtpEncryption = tls smtpServer = smtp.gmail.com smtpUser = [email protected] smtpServerPort = 587
-
Also add a credential section with a helper.store entry: [credential] helper = store
The default file will be .git-credentials but you can specify a different file using --file [credential] helper = store --file /home/wink/.gitcreds
-
Now you can store your details in the “credentials” file (.git-credentials or .gitcreds in this case) with the “git credential-store store” command. Or you can just use git send-email and it will prompt for a password the first time it’s used.
If you want to store the password explicitly then issue git credential-store command. That command accepts the information from stdin and stores the information after entering a blank line: $ git credential-store store protocol=smtp host=smtp.gmail.com:587 username=[email protected] password=
$
This was helpful. Thanks. It helped me write my full instructions, here: https://stackoverflow.com/questions/68238912/how-to-configure-and-use-git-send-email-to-work-with-gmail-to-email-patches-to/68238913#68238913