【问题标题】:Why can not pust local gitbook to gitbook.com?为什么不能将本地 gitbook 推送到 gitbook.com?
【发布时间】:2018-09-09 10:14:24
【问题描述】:

我按照官方文档使用 GIT 更新我的 gitbook:

touch README.md SUMMARY.md
git init
git add README.md SUMMARY.md
git commit -m "first commit"
git remote add gitbook https://git.gitbook.com/{{UserName}}/{{Book}}.git
git push -u -f gitbook master

执行git push后会报错:

远程:找不到书致命:存储库 'https://git.gitbook.com/xxx/yyy.git/' 未找到

xxx 是我的 gitbook 用户名,yyy 是我的空间,有人可以帮帮我吗?

jackmeng 是我的用户名。 杰克是我的组织。 注意是我的空间名称。 请纠正我。

【问题讨论】:

  • 您可以透露 git repo 的名称(即您的用户名和书名)。我怀疑这两个中的一个不正确,并且您指向错误的存储库
  • 感谢您的回复。 git.gitbook.com/jackmeng/note.git 是我的远程网址。浏览器访问url后显示API method not found
  • 我上传了关于我的 gitbook 信息的截图,我的 url 中有什么东西吗?
  • 从 git 的角度来看,命令和 repo 看起来是正确的,但我对 gitbook 并不是很熟悉。不过,这个错误有点奇怪,因为后面有一个 / 字符。你确定你输入正确吗?
  • git remote -v 的输出是什么?

标签: git gitbook


【解决方案1】:

“书”用于legecy.gitbook.com,“空格”用于www.gitbbok.com,请在此处查看新文档:https://docs.gitbook.com/getting-started/starting-a-project-on-gitbook,“空格”替换“书”。 如果你想与 github 集成,你需要做的是将目标空间与目标 github 存储库集成,然后自动完成同步工作。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-09-03
    • 2012-01-31
    • 1970-01-01
    • 2021-10-14
    • 1970-01-01
    • 2013-11-20
    • 2023-03-15
    • 2017-12-28
    相关资源
    最近更新 更多