如何解决请求的URL返回的错误:git存储库中的403 [英] How to solve the requested URL returned error: 403 in git repository

查看:1137
本文介绍了如何解决请求的URL返回的错误:git存储库中的403的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在git中有多个帐户,三周前我用此帐户提交了代码.我将无法提取我的代码.我正在收到要求 网址返回错误:403 我将尝试推送至Git返回错误代码403致命:HTTP请求失败 但我无法解决我的错误

I have multiple accounts in git I committed code three weeks back with this account. I'll unable to pull my code . I was getting The requested URL returned error: 403 I'll try Pushing to Git returning Error Code 403 fatal: HTTP request failed but I couldn't solved my error

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin
remote: Forbidden
fatal: unable to access 
'https://chantidurgam@bitbucket.org/chantidurgam/patanjali.git/': The requested 
URL returned error: 403

已完成错误,请参见上文.

Completed with errors, see above.

推荐答案

在使用git cli和sourcetree时,我遇到了同样的问题-并通过以下方法解决了该问题.

I had the same issue when using the git cli and sourcetree - and doing the below solved it.

这基本上是一个身份验证问题,并且git已经存储了我对bitbucket和github的信任.我要做的就是使用sourcetree删除那些保存的条目.

This is basically an auth issue and git had stored my creds for both bitbucket and github. All I had to do was delete those saved entries using sourcetree.

我正在使用SourceTree,因此转到工具->选项->身份验证

I am using SourceTree, so went to Tools -> Options -> Authentication

在git保存的密码下,我将其全部删除.

and under git saved passwords, I deleted them all.

这篇文章也可以引出其他同样的方法.

This post can lead to other ways of doing the same as well.

从Git删除凭据

这篇关于如何解决请求的URL返回的错误:git存储库中的403的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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