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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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
TAGS
Community showcase
Published in DevOps

Step up your DevOps game webinar Q&A series - Questions answered!

  On October 21st, 2020 we hosted a webinar titled,   Step Up You DevOps Game with 4 Key Integrations for Jira and Bitbucket. We had a great showing and high engagement, but that meant th...

111 views 0 1
Read article

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