git bash:请求的URL返回错误:403

发布于 2025-02-06 13:33:40 字数 109 浏览 2 评论 0 原文

远程:允许Rakeshuke/My-New-Repo-Ru.git拒绝dilip26jan。 致命:无法访问'https://github.com/rakeshuke/my-new-repo-ru.git

remote: Permission to rakeshuke/my-new-repo-ru.git denied to dilip26jan.
fatal: unable to access 'https://github.com/rakeshuke/my-new-repo-ru.git

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冬天旳寂寞 2025-02-13 13:33:40

从您提供的回购URL(),我可以看到您的github用户名是:rakeshuke

在您的终端运行中

git config -list

检查您的名字是否与URL上的名称相对应,如果不是,则在终端上运行此功能

git config user.name“ rakeshuke”

git config user.email“ your-email”

git config user.credential.username“ rakeshuke”

最后,从github.com获取您的个人访问令牌,并在OS的凭证管理器中进行更新。

From the repo URL you provided (https://github.com/rakeshuke/my-new-repo-ru.git), I can see that your GitHub username is: rakeshuke

On your terminal run

git config --list

Check if your name corresponds to that on the URL, if not, run this on the terminal

git config user.name "rakeshuke"

git config user.email "your-email"

git config user.credential.username "rakeshuke"

Lastly, get your Personal Access Token from github.com and update it in the credential manager of your OS.

请远离我 2025-02-13 13:33:40

创建令牌

对于github,使用以下链接 “ rel =“ nofollow noreferrer”> https://docs.github.com/en/authentication/keeping-your-account-anda-secure/managing-your-personal-access-tokens

然后在终端中使用生成的令牌而不是密码。它对我有用。

For GitHub, create a token using the following link

https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens

Then in terminal use the generated token instead of your password. It worked for me.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文