为什么github不断向我索取回购凭证? [英] Why does github keep asking me for repo credentials?

查看:89
本文介绍了为什么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.

这篇关于为什么github不断向我索取回购凭证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆