Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

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.

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

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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