One thing a lot of email providers (at least gmail and fastmail) do is let you create application passwords that you can use for specific purposes. So if you're at all queasy about having your password in plain text on the hard drive, you can create a special password just for git. Edit: you don't have to set up a terminal email client at this point, but if you figure out how to use git-send-email, you're just inches…
You can also omit it and type it in each time you use git send-email, or you can set it up with your on-site keyring using git-credential: https://git-scm.com/docs/gitcredentials
Show HN: Learn to use email with Git
11–20 of 76 posts
Re: Show HN: Learn to use email with Git
#12One thing a lot of email providers (at least gmail and fastmail) do is let you create application passwords that you can use for specific purposes. So if you're at all queasy about having your password in plain text on the hard drive, you can create a special password just for git. Edit: you don't have to set up a terminal email client at this point, but if you figure out how to use git-send-email, you're just inches…
The Google implementation of application specific passwords is horrible . There's nothing application specific about it -- it's valid for at least mail, calendar, and contacts, with no way to limit the scope. It ends up being a password that effectively bypasses all MFA on your Google account. Where do you store such a password? That's a powerful credential to be regularly unlocking. I should be able to create a cred…
Re: Show HN: Learn to use email with Git
#13No JS - I was baffled - did not know about ` ">`. Nice. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/la...
Re: Show HN: Learn to use email with Git
#14No JS - I was baffled - did not know about ` ">`. Nice. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/la...
Anti-snark edit: what's the URL to a specific step?
Re: Show HN: Learn to use email with Git
#15Re: Show HN: Learn to use email with Git
#16Re: Show HN: Learn to use email with Git
#17Re: Show HN: Learn to use email with Git
#18One thing a lot of email providers (at least gmail and fastmail) do is let you create application passwords that you can use for specific purposes. So if you're at all queasy about having your password in plain text on the hard drive, you can create a special password just for git. Edit: you don't have to set up a terminal email client at this point, but if you figure out how to use git-send-email, you're just inches…
> Without any credential helpers defined, Git will try the following strategies to ask the user for usernames and passwords:
> 1. If the GIT_ASKPASS environment variable is set, the program specified by the variable is invoked. A suitable prompt is provided to the program on the command line, and the user’s input is read from its standard output.
> 2. Otherwise, if the core.askPass configuration variable is set, its value is used as above.
> 3. Otherwise, if the SSH_ASKPASS environment variable is set, its value is used as above.
> 4. Otherwise, the user is prompted on the terminal.
So, for example, if you're using `pass`, the password-store, you can just set one of these to `pass smtp/me@example.com`, and pass will prompt you for your decryption password for your smtp password.
Re: Show HN: Learn to use email with Git
#19Great guide but there seems to be a typo/mistake regarding how to save the smtp password in step 2/gmail: should use sendemail.smtpPass instead of the non existing sendemail.password.
Re: Show HN: Learn to use email with Git
#20 git send-email -v2 ...
I tried to find documentation regarding the -v[0-9]+ parameter but couldn't find it at all. What am I missing in the docs? Seems a lot of guides recommend people to use this feature, however there is not a word regarding it in the git docs. It seems that it takes a positive integer as a parameter and adds it to the [PATCH v1] prefix in the subject.