【发布时间】:2014-08-19 11:42:32
【问题描述】:
我无法再在 Github 中推送到 origin。昨天我在介绍我的用户名时犯了一个错误,现在每次我尝试git push -u origin master我都会立即收到以下消息:
remote:用户名或密码无效。 致命:https://github.com/my_user_name/my_repo.git/ 的身份验证失败
我什至不再提示输入用户名或密码。 我尝试创建一个新的 OAuth 令牌和一个新的 ssh 密钥,但似乎没有任何效果。
任何帮助将不胜感激。
编辑: 要推送的仓库的 .git/config 文件说:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = https://github.com/eduardopoleo/tesing1.git
fetch = +refs/heads/*:refs/remotes/origin/*
[credential]
helper = cache [options]
【问题讨论】:
-
它在你的 .git/config 中对“origin”遥控器说了什么?
标签: git authentication github