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

Re: How do you save passwords for Git/GitHub?



On 21 July 2011 10:06, Jason Hsu <jhsu802701@jasonhsu.com> wrote:
> I have a script that uses "git clone" multiple times to download all of the repositories I need for my project Swift Linux. (Each major task has its own repository.)  The code is at https://github.com/swiftlinux/1-build/blob/master/get_reps_diet.sh .
>
> However, I'm asked for my password EVERY TIME the script tries to download a repository. Is there a way to save my password (temporarily) so that I don't have to enter it 20 times?  All I need here is a way to download multiple repositories while only entering my password ONCE.  Is that too much to ask?
>
> I tried the suggestions at http://help.github.com/ssh-key-passphrases/ , but the only thing that worked was entering "ssh-keygen -p" and eliminating the password.

As indicated on the site you mention, use ssh-agent. It works like a charm.


Reply to: