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.
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'"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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' :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.