Configuring Git over SSH to login once

reprogrammer picture reprogrammer · Oct 20, 2009 · Viewed 298.8k times · Source

I have cloned my git repository over ssh. So, each time I communicate with the origin master by pushing or pulling, I have to reenter my password. How can I configure git so that I do not need to enter my password multiple times?

Answer

Muein Muzamil picture Muein Muzamil · May 14, 2012

Had a similar problem with the GitHub because I was using HTTPS protocol. To check what protocol you're using just run

git config -l

and look at the line starting with remote.origin.url. To switch your protocol

git config remote.origin.url [email protected]:your_username/your_project.git