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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Agility Beta

We've moved!

A note to all watchers that we've moved to a new community home... https://community.atlassian.com/t5/Agility/ct-p/agility Please update your notification subscriptions to keep across the ...

100 views 1 2
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