Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I prevent TortoiseGit asking me who to login as?

Tags:

tortoisegit

Ok, firstly I have set up SSH keys, I am not asked for a password, this is not another authentication question!

But I am still asked the question: 'login as' in a dialog box each time I wish to pull or push my code. How can I make this go away?

enter image description here

like image 442
Troyseph Avatar asked Feb 06 '15 11:02

Troyseph


1 Answers

I suppose your SSH-style URL for pushing/pulling does not include the/your username.

Just add it to the URL: username@servername:reponame

For this go to TortoiseGit settings -> Git -> Remote, click on the remote, change the URL and click on "Add New/Save".

TortoiseGit | Settings | Git | Remote | URL

like image 93
MrTux Avatar answered Sep 23 '22 02:09

MrTux