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?
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With