From: Jonathan Nieder <jrnieder@gmail.com>
To: "J. Bakshi" <joydeep@infoservices.in>
Cc: Jon Seymour <jon.seymour@gmail.com>, git@vger.kernel.org
Subject: Re: How to provide authentication along with git command itself ?
Date: Thu, 14 Jul 2011 15:02:44 -0500 [thread overview]
Message-ID: <20110714200244.GA14687@elie> (raw)
In-Reply-To: <20110714163149.63bad937@shiva.selfip.org>
J. Bakshi wrote:
> Well, I am using version 1.7, hence not DAV but using git-http-backend
Ah, I forgot to mention the docs for gitolite and http-backend[1].
As for your original question about how to set up or cache credentials,
unfortunately I haven't tried it. Based on git-push(1), it looks like
the usual
http://username:pass@domain/path/to/repo
syntax should work if you're passing the full URL on the command line
or if it's okay to store the usernames and passwords in plaintext in
.git/config.
If that's not okay, it also might be possible to hack up something
evil with the GIT_ASKPASS variable. Some of the patches mentioned in
the recent discussion about password prompts also might be
interesting[2].
Regards,
Jonathan
[1] http://sitaramc.github.com/gitolite/doc/http-backend.html
[2] http://thread.gmane.org/gmane.comp.version-control.git/176522
prev parent reply other threads:[~2011-07-14 20:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-14 10:45 How to provide authentication along with git command itself ? J. Bakshi
2011-07-14 10:50 ` Carlos Martín Nieto
2011-07-14 10:59 ` J. Bakshi
2011-07-14 11:12 ` Carlos Martín Nieto
2011-07-14 10:53 ` Jon Seymour
2011-07-14 11:01 ` J. Bakshi
2011-07-14 20:02 ` Jonathan Nieder [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=20110714200244.GA14687@elie \
--to=jrnieder@gmail.com \
--cc=git@vger.kernel.org \
--cc=jon.seymour@gmail.com \
--cc=joydeep@infoservices.in \
/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;
as well as URLs for NNTP newsgroup(s).