为什么github不断向我索取回购凭证?

问题描述:

我们最近将github从一个账户所有者转移到另一个账户,现在突然间,当我在远程仓库中执行 git pull 或任何git命令时,它请求我提供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.

我的git-config表示:

My git-config says:

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

任何想法如何我可以阻止它要求我的凭据和记住一切,新的所有者必须设置我的ssh密钥或类似的东西?

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?

执行remote -v之后....问题在于我的远程使用的是https远程而非git远程。更改远程使用git而不是https解决了所有问题。

After doing "remote -v"....the issue was that my remote was using an "https" remote rather than "git" remote. Changing the remote to use git rather than https solved everything.