Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues cloning repository locally (Windows 11, CLI) #9

Open
scodrington-networkten opened this issue Apr 2, 2025 · 0 comments
Open

Comments

@scodrington-networkten
Copy link

When cloning this repo locally, there's an error with an invalid path as shown below

$ git clone https://github.com/scrimba/learn-react.git
Cloning into 'learn-react'...
remote: Enumerating objects: 750, done.
remote: Counting objects: 100% (271/271), done.
remote: Compressing objects: 100% (116/116), done.
remote: Total 750 (delta 173), reused 155 (delta 155), pack-reused 479 (from 1)
Receiving objects: 100% (750/750), 690.87 KiB | 46.06 MiB/s, done.
Resolving deltas: 100% (415/415), done.
error: invalid path '01. Static pages/09. Why React? It's Composable!/index.css'
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 :/'

When you try and git restore them you get a heap of path issues like below

$ git restore --source=HEAD :/
error: invalid path '01. Static pages/09. Why React? It's Composable!/index.css'
error: invalid path '01. Static pages/09. Why React? It's Composable!/index.html'
error: invalid path '01. Static pages/09. Why React? It's Composable!/index.jsx'
error: invalid path '01. Static pages/09. Why React? It's Composable!/package.json'
error: invalid path '01. Static pages/09. Why React? It's Composable!/vite.config.js'
error: invalid path '01. Static pages/10. Why React? It's Declarative!/index.css'

I've tried with both SSH and HTTP but both times I get the same result. I've had to manually download the zip to get at the files.

thought I'd highlight this as it's not a great first impression

cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant