远程匿名访问存储库被拒绝? [英] Remote anonymous access to repository denied?

查看:89
本文介绍了远程匿名访问存储库被拒绝?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Ubuntu 12.04 LTS,并将 git 1.7 -something升级到 1.8.4 。问题是当我想要推送到GitHub存储库时,我收到以下消息并且没有发生推送:

I'm on Ubuntu 12.04 LTS and just upgraded my git from 1.7-something to version 1.8.4. The problem is when I want to push to a GitHub repository, I get the following message and the push doesn't happen:

/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/'

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

This is what I get from 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/*

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

And these are my remotes (git remote -v):

origin  https://github.com/rafalchmiel/caniuse.git (fetch)
origin  https://github.com/rafalchmiel/caniuse.git (push)

我尝试再次设置SSH密钥(虽然这是通过HTTP完成)并搜索选项。没有运气。关于我还能做什么的任何想法?

I tried setting up the SSH keys again (although this is done through HTTP) and have search for options. No luck. Any ideas on what else I could do?

推荐答案

然而,问题并未解决,最终我决定使用SSH的HTTPS。 SSH导致了 no 问题(并且不需要输入用户名和密码)!

The issues was not resolved however in the end I decided to go with SSH instead of HTTPS. SSH caused no problems at all (and there's no need to type in the username and pass)!

这篇关于远程匿名访问存储库被拒绝?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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