-2

I've followed GitHubs own guide on how to set up SSH keys without errors, everything seems to work great. When SSHing to git@github.com I'm greeted with my username and everything.

However, when using git pull or any other command that needs authenticating I'm always prompted for details and it's starting to annoy me.

I've tried various different solutions around the web but none has worked. I'm using Git Bash on Windows 7.

Rasmus
  • 4,190
  • 7
  • 22
  • 32
  • 1
    Are you running an ssh agent such as PuTTY's `pageant`? Are you prompted for a password when you SSH to git@github.com or only when doing `git pull`? Did you clone the repo using the URL for HTTP or SSH? – Jonathan Wakely Jun 29 '15 at 12:40

1 Answers1

0

I think your problem is that you need to tell git to store your credentials by caching them.

To store your credentials you need to use the following git command:

git config --global credential.helper 'cache --timeout 3600'

This will store your credentials you setup in a separate file under your project directory (.git-credentials).

If you wish Git to resume to asking you for credentials you can run the following command:

git config --unset credential.helper
Endre Simo
  • 11,330
  • 2
  • 40
  • 49
  • Hey, why the downrate? If someone mark the answer as downrate be so kind and explain the reason why? – Endre Simo Jun 29 '15 at 14:35
  • I didn't downvote but I would guess the main problem is the OP isn't using the right url for their repo. This answer also duplicates info in the duplicate question (which was flagged as a duplicate before this answer was created iirc - _don't answer duplicate questions_). – AD7six Jun 29 '15 at 17:26
  • I think you are wrong! I already answered the question before the question was voted as duplicate. – Endre Simo Jun 30 '15 at 06:22
  • You are going to ignore the other (more relevant) possible explanation? Again, I didn't downvote your answer. – AD7six Jun 30 '15 at 06:47