解決git提交問題error: The requested URL returned error: 403 Forbidden while accessing

git提交代碼時,出現這個錯誤「error: The requested URL returned error: 403 Forbidden while accessing https」git

     解決方法:github

     編輯.git目錄下的config文件便可。web

    vim .git/configvim

     [core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[remote "origin"]ide

url = https://enzhouguo@github.com/enzhouguo/video_web.git
       //修改前 url = https://github.com/enzhouguo/video_web.gitfetch

       //修改後 url = https://enzhouguo@github.com/enzhouguo/video_web.git
        fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
        remote = origin
        merge = refs/heads/masterurl

相關文章
相關標籤/搜索