对存储库的远程匿名访问被拒绝了?

raf*_*raf 11 git github

我正在使用Ubuntu 12.04 LTS,只是将我git1.7-something 升级到版本1.8.4.问题是,当我想要推送到GitHub存储库时,我得到以下消息并且不会发生推送:

/caniuse $ git push
Username for 'https://github.com': rafalchmiel
Password for 'https://rafalchmiel@github.com': 
remote: Anonymous access to rafalchmiel/caniuse.git denied.
fatal: Authentication failed for 'https://github.com/rafalchmiel/caniuse.git/'
Run Code Online (Sandbox Code Playgroud)

这就是我得到的git config --list:

user.name=Rafal Chmiel
user.email=rafalmarekchmiel@gmail.com
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/*
Run Code Online (Sandbox Code Playgroud)

这些是我的遥控器(git remote -v):

origin  https://github.com/rafalchmiel/caniuse.git (fetch)
origin  https://github.com/rafalchmiel/caniuse.git (push)
Run Code Online (Sandbox Code Playgroud)

我尝试再次设置SSH密钥(尽管这是通过HTTP完成的)并且已经搜索了选项.没运气.关于我还能做什么的任何想法?

raf*_*raf 7

问题没有得到解决,但最终我决定使用SSH而不是HTTPS.SSH 根本没有引起任何问题(并且无需输入用户名和密码)!

  • +2,真的,在失去了相当一段时间后,这解决了! (2认同)