From: "Carlos Martín Nieto" <cmn@elego.de>
To: "J. Bakshi" <joydeep@infoservices.in>
Cc: git@vger.kernel.org
Subject: Re: How to provide authentication along with git command itself ?
Date: Thu, 14 Jul 2011 12:50:46 +0200 [thread overview]
Message-ID: <1310640646.18730.10.camel@bee.lab.cmartin.tk> (raw)
In-Reply-To: <20110714161508.2378c155@shiva.selfip.org>
On Thu, 2011-07-14 at 16:15 +0530, J. Bakshi wrote:
> Hello list,
>
> During git push or fetch over http , I need to provide username and
> password every time, as protected by apache htpasswd file. How can I
> provide the same along with git command ? Or something so that It save
> the authentication info somewhere within .git
The http transport uses the ~/.netrc file to get its authentication
data. `man netrc` will tell you about the syntax; for git, you need the
'machine', 'login' and 'password' fields.
Cheers,
cmn
next prev parent reply other threads:[~2011-07-14 10:50 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 [this message]
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
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=1310640646.18730.10.camel@bee.lab.cmartin.tk \
--to=cmn@elego.de \
--cc=git@vger.kernel.org \
--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).