Re: How to provide authentication along with git command itself ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 14 Jul 2011 12:50:46 +0200
Carlos Martín Nieto <cmn@xxxxxxxx> wrote:

> 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
> 
> 
> 

Thanks for the response. Can I use the same .netrc to store different authentication for different repo ? Is it somehow possible to store the information at the concerned .git of the repo ? I think this will be easier for multiple repos.

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]