git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Gelonida N <gelonida@gmail.com>
To: git@vger.kernel.org
Subject: clone over slow/ unreliable network  / partial clone with full history
Date: Sun, 21 Oct 2012 23:22:05 +0200	[thread overview]
Message-ID: <k61p1s$3fp$1@ger.gmane.org> (raw)

Hi,


Sometimes I have to clone a repository over a slow / rather unreliable 
network and wonder whether there are any tools tricks to reduce the pain
for such cases.


I'm having two problems:

Problem 1: Resuming a clone:
-----------------------------

When the connection gets cut during the clone, then I don't know how to 
continue / resume the clone. This is very annoying. After 20 minutes of 
cloning my connection is los. I reclone after 15 minutes the connection 
is lost. I reclone and after 25 minutes I succeed.

The only wrokaround, that I know would require full ssh access to the 
server. In fact it would be using rsync, (which can be resumed)
clone from the rsynced copy and thenmanually change the url of origin.



Problem 2: Full history but only required data
-----------------------------------------------
Very often I would only need a few versions (some branch heads / last 
week's commits) However git clone --depth seems to have far too many 
restrictions. (e.g. can't push from it)
So I wondered whether it would be possible to clone the entire history
of a repositry, but fetch only the data of a few specific commits.

This would reduce the transfer time massively as the repository may 
contine some huge binary files, which may change every few versions.

What would be great would be.
- download only the history (of course with a resume option if the 
connection got interrupted)
- then fetch the 'contents' for the version's I want to checkout
   (ideally specify some commit ranges, but specifying some specific 
commit id's would be good enough for me)



Are there any helper tools/ plans which would allow such work flow?

                 reply	other threads:[~2012-10-21 21:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='k61p1s$3fp$1@ger.gmane.org' \
    --to=gelonida@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).