2017-10-29 67 views
2

我目前在连接(推/拉)到我的Github帐户时出现问题。github上的无法推送/拉出项目

我之前一直在使用旧的github存储库,并决定创建一个新的。这可能是导致问题的主要原因。从那以后,我再也不能推或拉任何东西了。

我一直在使用Intellij作为我的IDE。每当我把它发出这样的信息:

“无法完成GitHub的共享过程 成功在GitHub上创建的项目‘practice2’,但最初的推失败: 无法访问“https://github.com/ ****/practice2.git /':请求的URL返回错误:403“

Error 到目前为止,我尝试过的解决方案都没有奏效。 我曾尝试解决这个问题:到目前为止

- creating the directory in Github and then just pushing it 
- committing it entirely 
- reinstalling Intellij 
- reinstalling git 
- tried to change .git config URL 
- pushing/pulling it through command line 
- deleting and then adding the remote, changing my "global user.name" and "global user.name" 

没有工作过

在命令行中似乎是在其github上即时通讯使用一个困惑:远程:权限@#@! /practice.git (当前github im推)否认MEPacana (旧github)。这个问题已经发生了差不多一个月了。

+0

在你的git仓库中,你的账户是否被列为合作者? –

+1

为了帮助缩小问题范围,请尝试从命令行拉出。当你做'git pull'时会发生什么? –

回答

1

仔细检查git config credential.helper的值:它有可能声明一个缓存机制,用于向GitHub提供错误的(旧)凭据。

在Windows上,例如,这将是Windows Credential Account

不要忘记:改变user.name/user.email无关身份验证。

+0

这是Windows凭据帐户。我现在有这个问题差不多一个月了。我实际上创建了一个堆栈溢出帐户来问这个问题。谢谢! –

+0

@MikePacana太好了!很高兴有服务。现在您可以开始回答其他问题;) – VonC

0

你用来描述你的问题的语言不是很精确,所以我不确定你有什么确切的问题。我会尝试重组您的问题,让我知道这是错误的:

I am currently having problems pushing to or pulling from one of my remote repositories on GitHub.

I have an existing project that has been associated with an old repository on GitHub. I decided to create a new remote repository and since then have not been able to push or pull anything.

如果总结是正确的,那么你会发现GitHub documentation on changing a remote URL或相关的related SO question

作为一个观点,我建议从命令行使用Git来解决这个问题,以隔离Intellij可能添加的任何问题。这也可以让你更紧密地跟踪这些链接的指示。

最后,请记住,您的远程可以使用SSH或HTTP URL;值得检查,看看这可能是麻烦。