我使用的是 Ubuntu 12.04 LTS,刚刚升级了我的git
from 1.7
- 一些版本1.8.4
。问题是当我想推送到 GitHub 存储库时,我收到以下消息,但推送没有发生:
/caniuse $ git push
Username for 'https://github.com': rafalchmiel
Password for 'https://[email protected] /cdn-cgi/l/email-protection':
remote: Anonymous access to rafalchmiel/caniuse.git denied.
fatal: Authentication failed for 'https://github.com/rafalchmiel/caniuse.git/'
这就是我从中得到的git config --list
:
user.name=Rafal Chmiel
[email protected] /cdn-cgi/l/email-protection
alias.undo-commit=reset --soft HEAD^
color.ui=true
push.default=matching
credential.helper=cache --timeout=86400
github.user=rafalchmiel
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=https://github.com/rafalchmiel/caniuse.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
这些是我的遥控器(git remote -v
):
origin https://github.com/rafalchmiel/caniuse.git (fetch)
origin https://github.com/rafalchmiel/caniuse.git (push)
我尝试再次设置 SSH 密钥(尽管这是通过 HTTP 完成的)并搜索选项。没有运气。关于我还能做什么的任何想法?
问题没有得到解决,但最终我决定使用 SSH 而不是 HTTPS。 SSH 导致no根本没有问题(而且不需要输入用户名和密码)!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)