clone succeeded but checkout failed
Asked Answered
C

1

6

I tried to clone a large project at work. It has worked in the past. This is a new machine I'm working on and I'm cloning it using terminal on the Mac in one of the /Volumes folder where Parallels can access it. Previously, I have cloned it on Windows no problem.

An error I get when it's done is it says,

warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

When I try to do the git checkout -f HEAD, it looks like git tries to check it out, but it basically goes through the different projects in the VS solution saying:

error: unable to create file src/MyProject (File exists)

Has anyone encountered this before? Is it because I'm trying to clone to /Volumes/c/MyProjects/NameOfProject?

Thanks in advance.

Crossstitch answered 12/2, 2014 at 5:5 Comment(1)
"You can inspect what was checked out with 'git status'" Ok: What git status says? And what is your version of git?Dearden
M
-1

I've encounter this error before.

The files from the repo are present(successfully cloned) but it only failed to do a checkout.

Remove the files.

Matinee answered 22/2, 2014 at 21:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.