美文网首页
Push failed fatal: unable to acc

Push failed fatal: unable to acc

作者: 槐树向北 | 来源:发表于2018-05-07 11:51 被阅读146次

方法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 acc

      本文链接:https://www.haomeiwen.com/subject/rbpmrftx.html