Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

However I cannot continue the 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).

share|improve this question
up vote 3 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.

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

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.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .