Cannot clone/ checkout successfully in widows 32 bit Edited

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

This widget could not be displayed.

Hello Naleen, 

What steps are you taking to clone your repo?  

Are you using CLI or a GUI?

-Billy

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

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 

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.

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' :)

Hi Billy,

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

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Sep 17, 2018 in Teamwork

The tools we make for teams? We use them every day at Atlassian to get shit done (and it works).

I’m Jess, a Product Marketer for Jira Software Server and Data Center, and now a huge fan of our products. Read on for a 90 day, new-hire perspective on what it’s like to standardize on the Atlassian...

78 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you