解决github push错误The requested URL returned error: 403 Forbidden while accessing
git version 1.7.1 为:
发布日期:2021-06-29 11:22:05
浏览次数:2
分类:技术文章
本文共 486 字,大约阅读时间需要 1 分钟。
github push错误:
- git push
- error: The requested URL returned error: 403 Forbidden while accessing https://github.com/wangz/future.git/info/refs
OS:CENTOS
解决方案:
vim .git/config
修改
- [remote "origin"]
- url = https://github.com/username/example.git
- [remote "origin"]
- url = https://username@github.com/username/example.git
再次git push,弹出框输入密码,即可提交
或者修改为
- [remote "origin"]
- url = https://username:password@github.com/username/example.git
转载地址:https://blog.csdn.net/zxp3817100/article/details/50826957 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
路过按个爪印,很不错,赞一个!
[***.219.124.196]2024年04月20日 06时52分44秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
kernel 2.6.32 Unknown symbol 错误
2019-04-29
gstreamer GST_BOILERPLATE_FULL 分析
2019-04-29
力扣的两数之和解法(python3)
2019-04-29
力扣的删除排序数组中的重复项解法(python)
2019-04-29
力扣的移除元素 解法 Python3
2019-04-29
力扣的三数之和解法(Python3)
2019-04-29
力扣的最接近的三数之和解法(Python3)
2019-04-29
力扣的买卖股票的最佳时机 III之解法(Python3)
2019-04-29
LeetCode 合并两个有序链表 解法 (Python)
2019-04-29
力扣的删除排序链表中的重复元素解法 (Python3)
2019-04-29
力扣的环形链表解法 (Python)
2019-04-29
力扣的盛最多水的容器解法 (Python)
2019-04-29
力扣的电话号码的字母组合解法(Python)
2019-04-29
力扣的组合总和解法 (Python)
2019-04-29
力扣的两数相加解法 (Python)
2019-04-29
力扣的删除链表的倒数第N个节点解法(Python)
2019-04-29
力扣的串联所有单词的子串解法(Python)
2019-04-29
力扣的接雨水解法(Python3)
2019-04-29
HTML5 五种密码框
2019-04-29
Node.js npm uuid
2019-04-29