4

I would like to disable the password prompt of git, so I thought that I can setup a ssh-key onto my remote repository. But how do I associate it with git on my computer.

Thanks.

Itay Grudev
  • 7,055
  • 4
  • 54
  • 86
  • 1
    possible duplicate of [Remember Password, Git bash under windows](http://stackoverflow.com/questions/5727555/remember-password-git-bash-under-windows) –  Jul 27 '13 at 16:39

4 Answers4

7

It should only ask for a password if you access git through SSH using a password-protected private key.
If that is the case, you need to run an SSH agent, as described in "Remember Password, Git bash under windows".

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
1

You should have a look to gitolite: http://sitaramc.github.com/gitolite. There is everything in you need and also explained how to setup. A password less login is also possible for CI server for example.

My experience tells me not to use something else, because a self made solution is too cumbersome.

Rick-Rainer Ludwig
  • 2,371
  • 1
  • 26
  • 42
1

You can use "start-ssh-agent.cmd" on windows which will use ssh key to authenticate. This can be found in "GIT/cmd" directory.

0

Very detailed instructions can be found on the GitHub website at Win-Set-Up-Git. GitHub has an interest in making sure those instructions are good; if they are not, let them know as they will want to improve them.

GoZoner
  • 67,920
  • 20
  • 95
  • 145