It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

0 votes
BillyP Community Leader Dec 05, 2017

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

BillyP Community Leader Dec 06, 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 

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 Dec 07, 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' :)

Hi Billy,

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

BillyP Community Leader Dec 08, 2017

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Off-topic

Do you still play the same games you played when you were a kid?

Months ago, I was walking in a huge grocery store and I went to the toys aisle and found a jigsaw puzzle that was more than 50% off, and I thought "why not? It will be fun and it can be a beautiful f...

270 views 25 10
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you