随笔 - 112  文章 - 0  评论 - 12  阅读 - 62万

git push 出现fatal: unable to access 'http://xxx': The requested URL returned error: 403

问题:

cch:requsetDatas leo$ git push origin master

remote: Permission to bbb/requsetDatas.git denied to aaa.

fatal: unable to access 'https://github.com/bbb/requsetDatas.git/': The requested URL returned error: 403

解决方法:

1:终端输入:vim .git/config 就是打开git的config配置文件。

2:找到下面一句

[remote "origin"]

url = https://github.com/bbb/example.git

修改为:

[remote "origin"]

url = https://bbb@github.com/bbb/example.git

保存并退出。(注意颜色字体)

3:再次git push origin master,提示输入密码,OK。

posted on   凌风子  阅读(1427)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
历史上的今天:
2022-03-30 cmd 运行批处理,路径中有括号不识别怎么办
2022-03-30 cmd命令 生成以当前日期命名的文件
2022-03-30 pycharm 函数下输入三个“““回车后不出现参数,返回值等注释
2022-03-30 appium中的Multiaction(多点触控)的用法
2022-03-30 Python 哈希算法实现图片相似度比较
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示