Re: How do you save passwords for Git/GitHub?
On 2011-07-21 18:09, Jason Hsu 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.
What exactly have you tried? Can you send us the console log?
You should be able to get away with this:
ssh-agent /bin/bash
ssh-add
git clone
--
http://people.eisenbits.com/~stf/
http://www.eisenbits.com/
OpenPGP: E3D9 C030 88F5 D254 434C 6683 17DD 22A0 8A3B 5CC0
Reply to: