简体   繁体   English

“ git fetch”不起作用

[英]“git fetch” does not work

git@gitorious.org:~porton/texmacs/texmacs-porton.git is my repository containing a clone of the main TeXmacs repository git://gitorious.org/texmacs/texmacs.git with my changes (not accepted to the main repository). git@gitorious.org:~porton/texmacs/texmacs-porton.git是我的存储库,其中包含主要TeXmacs存储库的副本git://gitorious.org/texmacs/texmacs.git及其更改(不接受主存储库)。

I run the following commands: 我运行以下命令:

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

$ cd texmacs-porton

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

The last get fetch outputs nothing and as it seems to me does not create any new branches. 最后的get fetch输出任何内容,在我看来,它不会创建任何新分支。

Please help me to merge from the main TeXmacs repository to my own. 请帮助我从主要的TeXmacs存储库合并到我自己的存储库。

Is it a bug of git? 是git的错误吗?

try 尝试

git remote add official git://gitorious.org/texmacs/texmacs.git
git fetch official
  • git:// is much faster git://快得多
  • by giving the remote a name, fetch can create remote branches 通过给远程命名,获取可以创建远程分支

The problem is likely your URL. 问题可能出在您的URL。 You're using https:// (which results in a 404) when you should be using git:// . 当您应该使用git://时,您正在使用https:// (导致404)。

The following works for me: 以下对我有用:

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

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

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