git报错:error: The requested URL returned error: 403 Forbidden while accessing https://github.com/summ

来源:互联网 发布:springboot源码分析 编辑:程序博客网 时间:2024/05/18 20:46

编辑配置文件:

vi .git/config

修改:

[remote "origin"]
        url = https://github.com/xx/learngit.git
        fetch = +refs/heads/*:refs/remotes/origin/*

为:

url = https://xx@github.com/summerkxy/learngit.git
        fetch = +refs/heads/*:refs/remotes/origin/*

即可

0 0
原创粉丝点击