Push failed fatal: unable to access 'https://github.The requested URL returned error: 403 [已解决]2...

方法1.

不要使用网络代理软件.!!!
不要使用网络代理软件.!!!
不要使用网络代理软件.!!!

不要使用网络代理软件.

方法2. 修改.git目录下的config文件

增加用户名和密码.

原来的文件内容是这样:

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
    ignorecase = true
    precomposeunicode = true
[remote "origin"]
    url = https://github.com/Pandaring/Demos.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master

修改后的文件内容是这样:

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
    ignorecase = true
    precomposeunicode = true
[remote "origin"]
    url = https://你的github用户名:你的github密码@github.com/Pandaring/Demos.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master

你可能感兴趣的:(Push failed fatal: unable to access 'https://github.The requested URL returned error: 403 [已解决]2...)