Alex Rivera | Logout

Why does github keep asking me for repo credentials?

Asked 2012-04-12T15:07:19.317
16

We recently moved our github from one account owner to another, and now all of the sudden when I do a git pull or any git command on the remote repo, it asks me for github username and password.

My git-config says:

[github]
    user = kamilski81
    token = *********

Any idea how I can stop it asking me for credentials and remember everything, does the new owner have to setup my ssh keys or something of that sort?

Edit
Report

1 Answer

24

Following this article sorted it out for me: https://help.github.com/articles/why-is-git-always-asking-for-my-password

git remote set-url origin git@github.com:user/repo.git
answered 2013-02-28T12:00:32.420

Your Answer