错误提示如下

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相关推荐

  1. fatal: unable to access 'xxxxxxxxxxxxx':The requested URL returned error: 403

    完整报错如下 remote: Permission to appleyuchi/Front_Design.git denied to SomeNews. fatal: unable to access ...

  2. git push报错:fatal: unable to access ‘https://github.com/***/‘:The requested URL returned error: 403

    前言 又是被自己菜死的一天. 1.报错信息 使用git push命令后,报错信息如下: remote: Permission to *** denied to . fatal: unable to a ...

  3. push代码至gitee码云报错unable to access 'https://gitee.com/*/git/': The requested URL returned error: 403

    第一次使用idea整合gitee插件用来push代码的时候,不小心输错了用户名或密码,导致后续push代码,一直报错:unable to access 'https://gitee.com/*/git ...

  4. git push提交代码到服务器报remote: [session-xx] Access denie The requested URL returned error: 403

    操作: 执行git push -u origin master,我想把commit的代码直接提交到远程的仓库,哪知道直接给我一个报错: remote: [session-xxx] Access den ...

  5. 关于The requested URL returned error: 403

    fatal: unable to access 'https://github.com/zkhmqyiqi/huashan.git/': The requested URL returned erro ...

  6. 解决github push错误The requested URL returned error: 403 Forbidden while accessing(转)

    github push错误: git push error: The requested URL returned error: 403 Forbidden while accessing https ...

  7. 解决git提交问题error: The requested URL returned error: 403 Forbidden while accessing

    2019独角兽企业重金招聘Python工程师标准>>> git提交代码时,出现这个错误"error: The requested URL returned error: 4 ...

  8. git错误: The requested URL returned error: 403 Forbidden while accessing https://github.com/wangz/futu

    github push错误: git push error: The requested URL returned error: 403 Forbidden while accessing https ...

  9. git -- RPC failed; HTTP 403 curl 22 The requested URL returned error: 403

    错误: RPC failed; HTTP 403 curl 22 The requested URL returned error: 403 原因: 账户没有读写权限,联系管理索要权限 排查方法: 使 ...

最新文章

  1. php中instanceof的使用
  2. 新闻资讯小程序开发实践
  3. CSP认证201609-4 交通规划[C++题解]:最短路径树、dijkstra求单源最短路、递推思想
  4. ViewModel优雅的弹加载窗和获取Context
  5. Amazon EC2 AMI实现X11 forwarding【从MobaXterm打开浏览器和图形界面】
  6. 木七七施辰刚:我是这样将玩家次留提升了 5% 的
  7. linux 配置tensorflow 全过程记录
  8. 服务人员在Hybris ASM手动分配coupon给某个客户
  9. executable file and DLL
  10. 在控制台环境下调用MFC DLL崩溃的问题小结
  11. redis缓存Hash操作的在主数据中的应用
  12. 使用C语言快速统计fastq文件q20、q30、GC含量
  13. qq物联网 android sdk,qcloud-iot-sdk-android
  14. 48搜索相关参数梳理以及bouncing results问题解决方案
  15. 【尚硅谷】Vue.js从入门到精通笔记
  16. 计算机网络习题篇(一)
  17. mac 苹果鼠标 magic mouse2 当触摸代替点击当触摸板教程
  18. 乐高计算机游戏泡泡龙的目标,乐高游戏教案
  19. Pb数字变成英文字母金额
  20. 14家国内外医药行业协会于国际医药创新大会联合签署《医药创新宣言》

热门文章

  1. 大豆和黄豆芽还能吃吗?
  2. sql server 2008 您所做的更改要求删除并重新创建以下表
  3. 多云世界中的SD-WAN—Vecloud
  4. Postgresql中文排序
  5. sql根据某个字段拼接另外字段
  6. 《Java大学教程》—第5章 数组
  7. android shortcut livefoulder
  8. 55种网页常用小技巧
  9. Excel 计算时间差
  10. 影响网站转化率的10大误区(上)