Linuxkiss
    首页 Linux C/C++ C++面试 Qt答疑 Qml中文手册 Qt CMake Python 工具
Linuxkiss
www.linuxkiss.com 你可以精通一门IT技术
  1. 首页
  2. GitHub
  3. 正文

git 出现 The requested URL returned error: 403【已解决】

2017年12月08日 18点热度 0人点赞

今天在用git,提交代码时候,git push origin master之后,出现下面一串问题,那么怎么解决呢?经过百度,找到了一个方法,亲测可用,大家如果也遇到相同问题,可以一步一步参考下。

问题:

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。

标签: Git github
最后更新:2020年05月15日

Leo

保持饥渴的专注,追求最佳的品质

点赞
< 上一篇
下一篇 >
关注公众号

日历
2021年4月
一 二 三 四 五 六 日
« 2月    
 1234
567891011
12131415161718
19202122232425
2627282930  
最新 热点 随机
最新 热点 随机
windows中出现"无法解析的外部符号"到底是什么原因 Qt5中lambda表达式用法,非常实用 warning: class 'InterFace' defines a non-default destructor but does not define a copy constructor, a copy assignment operator, a move constructor or a move assignment operator 无法解析的外部符号 "public: static struct QMetaObject const Windows下Qt代码出现的错误总结 QT Creator如何在创建项目的时候,头文件和cpp文件的首字母默认大写
python使用1--使用Pycharm编写第一个python程序 QT中如何获取本机mac地址和ipv4地址 用宏定义得到一个数组所含的元素个数 4.3.2 其他文件搜索命令 1locate 2which 3whereis 4grep 数组指针与函数指针的定义 setTimeout()的用法详解及实例
标签聚合
qml中文手册 qml中文文档 C/C++面试 qmake C++ openCv Qt Linux

COPYRIGHT © 2020 Linuxkiss. ALL RIGHTS RESERVED.