git push报错解决

    1、git push报错

    remote: Permission to {xxx} denied to {xxx}.
    
    致命错误:无法访问 '{xxx}':The requested URL returned error: 403
    

    2、解决

    修改.git -> config文件 ->url参数

    • 这个是正常的url
    https://github.com/{github用户名}/{github仓库地址}
    
    • 这个是修改后的,在github.com前面加上了”{github用户名}@“
    https://{github用户名}@github.com/{github用户名}/{github仓库地址}