Git上传出现:The requested URL returned error: 403解决办法

栏目: 编程工具 · 码农笔记 · 发布时间: 7年前

内容简介:Git上传出现:The requested URL returned error: 403解决办法

今天上传 push 代码到 github 时出现 403 错误,错误如下

[root@lnmp2 calendar]# git remote add origin https://github.com/kevensuu/calendar.git
[root@lnmp2 calendar]# git push -u origin master
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/kevensuu/calendar.git/info/refs

fatal: HTTP request failed

解决方式:改 httpsssh

[core]
	repositoryformatversion = 0
	filemode = false
	bare = false
	logallrefupdates = true
	symlinks = false
	ignorecase = true
[remote "origin"]
	url = git@github.com:github的名字/库的名字.git
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master

修改后,再次 push,即可!


以上所述就是小编给大家介绍的《Git上传出现:The requested URL returned error: 403解决办法》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Programming Computer Vision with Python

Programming Computer Vision with Python

Jan Erik Solem / O'Reilly Media / 2012-6-22 / USD 39.99

If you want a basic understanding of computer vision's underlying theory and algorithms, this hands-on introduction is the ideal place to start. As a student, researcher, hacker, or enthusiast, you'll......一起来看看 《Programming Computer Vision with Python》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具