Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does github keep asking me for repo credentials?

Tags:

github

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?

like image 328
Kamilski81 Avatar asked Apr 12 '12 15:04

Kamilski81


People also ask

How do I remove login pop verification for credentials GitHub?

If you don't want to the manager helper, run git config -l --show-origin to find the file which has the other credential. helper setting and then edit it to remove that option.

How do I disable the credential cache in git?

You could also disable the use of the Git credential cache using git config --global --unset credential. helper. Then reset this, and you would continue to have the cached credentials available for other repositories (if any). You may also need to do git config --system --unset credential.


1 Answers

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 [email protected]:user/repo.git
like image 167
Daniel Morris Avatar answered Sep 27 '22 16:09

Daniel Morris