Problem
Git cloning the repository on a Windows 10 machine throws this error:
error: invalid path 'saleor/graphql/core/tests/cassettes/test_get_oembed_data[http:/www.youtube.com/watch?v=dQw4w9WgXcQ-VIDEO].yaml'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
>git clone https://github.com/mirumee/saleor.git Cloning into 'saleor'... remote: Enumerating objects: 187180, done. remote: Counting objects: 100% (289/289), done. remote: Compressing objects: 100% (225/225), done. remote: Total 187180 (delta 136), reused 131 (delta 64), pack-reused 186891 Receiving objects: 100% (187180/187180), 105.28 MiB | 234.00 KiB/s, done. Resolving deltas: 100% (137187/137187), done. error: invalid path 'saleor/graphql/core/tests/cassettes/test_get_oembed_data[http:/www.youtube.com/watch?v=dQw4w9WgXcQ-VIDEO].yaml' 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 :/' Tried
I tried this approach but it didn't work at the last step:
$ git init saleor $ cd saleor $ git remote add origin https://gitzzz.com/yyy/saleor.git -f So far so good, but this command throws error:
$ git checkout origin/master -f error: invalid path 'saleor/graphql/core/tests/cassettes/test_get_oembed_data[http:/www.youtube.com/watch?v=dQw4w9WgXcQ-VIDEO].yaml' Tried
Also, this approach didn't help.
Question
How can I clone/checkout this repo on Windows?
Solution
The option suggested by @bk2204 resolved the issue:
- Fork the repository
- Clone the fork on Linux
- Change the path names on Linux
- Commit and push
- Then check out the fixed fork on Windows