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

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

 



On Thu, Jul 14, 2011 at 8:45 PM, J. Bakshi <joydeep@xxxxxxxxxxxxxxx> 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
>
> Thanks

You probably want to create the client setup section of this:

    http://kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt

Personally, I prefer to use an ssh hosted repository in such cases,
then use an ssh-agent to cache an SSH private key.

jon.
--
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]