简体   繁体   中英

“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).

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.

Please help me to merge from the main TeXmacs repository to my own.

Is it a bug of git?

try

git remote add official git://gitorious.org/texmacs/texmacs.git
git fetch official
  • git:// is much faster
  • by giving the remote a name, fetch can create remote branches

The problem is likely your URL. You're using https:// (which results in a 404) when you should be using git:// .

The following works for me:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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