I was cloning a Git repository when suddenly my inernet connection failed. So the download was stopped and about 50% of total files was downloaded.

But I cannot continue to download to download. If I try to do some Pull/Fetch, Git prompts "fatal: destination path '' already exists and is not an empty directory.". The only way that I found was deleting destination folder and download from beginning.

Are there any way to perform an operation to continue the download from the point it was stopped?

I'm using Git on Windows (through installed TortoiseGit-1.5.2.0-32bit.msi + Git-1.7.0.2-preview20100309.exe).

link|improve this question

57% accept rate
feedback

2 Answers

up vote 2 down vote accepted

The Restartable clone feature was part of the Google Summer of Code 2009 ideas for git - in the "Projects So Large Your Head Will Spin" section. However, I'm not aware of an implementation.

link|improve this answer
I must wait... Thanks. – kokbira Jul 16 '10 at 11:45
feedback

Try

  1. git init
  2. git add .
  3. git remote add master ssh://user@server:/GitRepos/myproject.git
  4. git pull

It worked for me, but I don't know if it's in the "correct" state or if it actually refetched all the files anyway.

It basically creates a blank repo, adds all existing files to it, then add's the master remote, then pulls in the files.

link|improve this answer
well, i'll test. thanks – kokbira Aug 16 '11 at 18:10
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.