fatal: unable to access : The requested URL returned error: 403
生活随笔
收集整理的這篇文章主要介紹了
fatal: unable to access : The requested URL returned error: 403
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
錯誤提示如下
C:\Users\AllenIverson\Desktop\gitbook-test>git push -u gitbook master remote: Forbidden fatal: unable to access 'https://git.gitbook.com/alleniverson/mybook.git/': The requested URL returned error: 403在使用Git向GitBook倉庫push(推送)更新的時候遇到的問題,Google了一下,在.git文件夾下的config文件中遠程倉庫url添加username@,如下
[core]repositoryformatversion = 0filemode = falsebare = falselogallrefupdates = truesymlinks = falseignorecase = true [remote "gitbook"]url = https://alleniverson@git.gitbook.com/alleniverson/mybook.gitfetch = +refs/heads/*:refs/remotes/gitbook/*再次push,依然是403,再次修改,添加username:password@,如下
[core]repositoryformatversion = 0filemode = falsebare = falselogallrefupdates = truesymlinks = falseignorecase = true [remote "gitbook"]url = https://alleniverson:mypassword@git.gitbook.com/alleniverson/mybook.gitfetch = +refs/heads/*:refs/remotes/gitbook/*再次push,成功。原因是:私有項目,沒有權限,需要輸入用戶名密碼
總結
以上是生活随笔為你收集整理的fatal: unable to access : The requested URL returned error: 403的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: GitBook使用教程
- 下一篇: Java NIO 系列教程