gpt4 book ai didi

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

转载 作者:IT王子 更新时间:2023-10-29 00:54:34 25 4
gpt4 key购买 nike

我在 Ubuntu 12.04 LTS 上,刚刚将我的 git1.7 升级到 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/'

这是我从 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/*

这些是我的 Remote (git remote -v):

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

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

最佳答案

问题没有解决,但最后我决定使用 SSH 而不是 HTTPS。 SSH 根本没有造成问题(并且无需输入用户名并通过)!

关于git - 对存储库的远程匿名访问被拒绝?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18664806/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com