From: Jeremy Baxter <jeremy@baxters.nz>
To: "brian m. carlson" <sandals@crustytoothpaste.net>
Cc: git@vger.kernel.org
Subject: Re: git send-email SMTP password command
Date: Mon, 24 Jun 2024 18:01:25 +1200 [thread overview]
Message-ID: <87bk3qc216.fsf@baxters.nz> (raw)
In-Reply-To: <Zm-ByA09z3jhij6u@tapette.crustytoothpaste.net> (brian m. carlson's message of "Mon, 17 Jun 2024 00:22:32 +0000")
"brian m. carlson" <sandals@crustytoothpaste.net> writes:
> You can use a credential helper, and that can be a shell command. For
> example, you can do this:
>
> git -c credential.helper= \
> -c credential.helper='!f(){ echo username="$USER"; echo password="$PASS";};f' send-email ...
>
> This resets the list of credential helpers (with the empty value) to
> remove any you may have already set, and then uses that shell script to
> read the credentials from the environment. The documentation on the
> protocol is in git-credentials(1) and gitcredentials(7).
>
> You can also use your regular credential helper to store the
> credentials, in which case you need not set any -c options at all.
Excellent, that's working for me now. Thanks a lot!
Jeremy
prev parent reply other threads:[~2024-06-24 6:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-16 22:49 git send-email SMTP password command Jeremy Baxter
2024-06-17 0:22 ` brian m. carlson
2024-06-24 6:01 ` Jeremy Baxter [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bk3qc216.fsf@baxters.nz \
--to=jeremy@baxters.nz \
--cc=git@vger.kernel.org \
--cc=sandals@crustytoothpaste.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox