How do I clone a large Git repository on an unreliable connection?

后端 未结 6 804
悲&欢浪女
悲&欢浪女 2020-12-30 20:21

I want to clone LibreOffice. From the official website, this is what\'s written:

All our source code is hosted in git:

Clone: $ git clone gi

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-30 21:04

    The repository is accessible via the http protocol (aka dumb protocol) here: http://anongit.freedesktop.org/git/libreoffice/core.git.

    You can download everything here with wget or another download manager, and you'll have a clone of the repository. After that, you rename the directory from core.git to .git, and use the following command to tell git about the remote url:

    $ git remote add remote http://anongit.freedesktop.org/git/libreoffice/core.git
    $ git reset --hard HEAD
    

提交回复
热议问题