Repository with directory named with a backslash \ Impossible to access or remove directory #47172
Replies: 2 comments 1 reply
-
Hello @bubu93200 you can do the following to correct.
Also after these steps, you should be able to clone your repository without any issues. |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Hi everyone
I have a problem with my repository on github
I have, on ma repository, a directory named "QMLexemple2\readme.md" . It's an error. iwanted to create a file readme.md in a directory QMLexemple2.
But now my repository is corrupted
In cloning my repository, I have :
Cloning into 'C:\Users\xxx\Documents\GitHub\MITmscore'...
remote: Enumerating objects: 19498, done.
remote: Counting objects: 100% (257/257), done.
remote: Compressing objects: 100% (119/119), done.
remote: Total 19498 (delta 137), reused 226 (delta 125), pack-reused 19241
Receiving objects: 100% (19498/19498), 126.55 MiB | 19.59 MiB/s, done.
Resolving deltas: 100% (8705/8705), done.
error: invalid path 'QMLexemple2\readme.md'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
Please, help me to solve this issue.
git restore --source=HEAD :/ explain me I have to change "\" to "/". But how to do this ?
Beta Was this translation helpful? Give feedback.
All reactions