繁体   English   中英

“ git fetch”不起作用

[英]“git fetch” does not work

git@gitorious.org:~porton/texmacs/texmacs-porton.git是我的存储库,其中包含主要TeXmacs存储库的副本git://gitorious.org/texmacs/texmacs.git及其更改(不接受主存储库)。

我运行以下命令:

$ git clone git@gitorious.org:~porton/texmacs/texmacs-porton.git

$ cd texmacs-porton

$ git fetch --verbose --progress https://git.gitorious.org/texmacs/texmacs.git

最后的get fetch输出任何内容,在我看来,它不会创建任何新分支。

请帮助我从主要的TeXmacs存储库合并到我自己的存储库。

是git的错误吗?

尝试

git remote add official git://gitorious.org/texmacs/texmacs.git
git fetch official
  • git://快得多
  • 通过给远程命名,获取可以创建远程分支

问题可能出在您的URL。 当您应该使用git://时,您正在使用https:// (导致404)。

以下对我有用:

git fetch git://git.gitorious.org/texmacs/texmacs.git

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM