Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Cannot clone/ checkout successfully in widows 32 bit

naleensub December 5, 2017

While cloning the repository, I get the message:

"error: unable to create file....No such file or directory
checking out files: 100%, done
fatal: Unable to checkout working tree
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'"

Please help me.

 

1 answer

0 votes
BillyP
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 5, 2017

Hello Naleen, 

What steps are you taking to clone your repo?  

Are you using CLI or a GUI?

-Billy

naleensub December 5, 2017

Hi Billy,

I am using the CLI (MINGW32) to clone the repo. However, GUI is also unable to clone it. I already tried.

Finally, it says:

"error: unable to create file....No such file or director

checking out files: 100%, done

fatal: Unable to checkout working tree

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'"

BillyP
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 6, 2017

Hello Naleen, 

What do you get when you type 'git status' ?

Do you have write permissions on the directory you're trying to write to? 

-Billy 

naleensub December 7, 2017

Hi Billy,

Yes, I have the permission in the directory.

When I use the 'git status' it shows the long list of the untracked files.

BillyP
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 7, 2017

Okay, so git status shows untracked files.  That's okay.  

Are you cloning into a clean directory?  If this is the 'git clone <git@repo>' then I'd try a wipe and reset.   

 

If you've created code and are trying to push it to the repo, you'll need to pull down first.  'git pull' to get the latest updates.

 

I'm thinking the next step is to try what it says to do 'git checkout -f HEAD' :)

naleensub December 8, 2017

Hi Billy,

Yes, I am trying to clone into a clean directory with exactly 'git clone <git@repo>'.

BillyP
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 8, 2017

Okay, what happens when you 'git checkout -f HEAD' ?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events