Centos下git push提示“error: The requested URL returned error: 403 Forbidden while accessing”

来源:互联网 发布:宝贝上淘宝首页 编辑:程序博客网 时间:2024/05/21 23:29

Centos下git push提示“error: The requested URL returned error: 403 Forbidden while accessing”

解决办法:

切换到当前git仓库
vim .git/config

将注释的url替换成新的url

[remote "origin"]        # url = https://github.com/naughtybear/ffmpeg_resources.git        url = https://naughtybear@github.com/naughtybear/ffmpeg_resources.git        fetch = +refs/heads/*:refs/remotes/origin/*

保存然后重新push即可。

阅读全文
0 0
原创粉丝点击