-
Notifications
You must be signed in to change notification settings - Fork 9
clone success, but checkout failed. #2
Copy link
Copy link
Open
Description
see error below
> git clone https://github.com/UKDataServiceOpen/Crime_Data_in_R.git
Cloning into 'Crime_Data_in_R'...
remote: Enumerating objects: 978, done.
remote: Counting objects: 100% (199/199), done.
remote: Compressing objects: 100% (152/152), done.
remote: Total 978 (delta 101), reused 114 (delta 44), pack-reused 779
Receiving objects: 100% (978/978), 213.83 MiB | 7.05 MiB/s, done.
Resolving deltas: 100% (335/335), done.
error: invalid path 'March_2023/Webinar /Live Code Demo Slide Deck.pptx'
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 :/'
file/folder can be retrieved by git restore --source=HEAD :/
> git restore --source=HEAD :/
error: invalid path 'March_2023/Webinar /Live Code Demo Slide Deck.pptx'
error: invalid path 'March_2023/Webinar /Mapping Crime Data in R Day 1 (03_2023) copy.pptx'
> ls
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 3/9/2023 9:23 PM assets
d----- 3/9/2023 9:23 PM Dec_2021
d----- 3/9/2023 9:23 PM Feb_2021
d----- 3/9/2023 9:23 PM June_2022
d----- 3/9/2023 9:23 PM March_2023
-a---- 3/9/2023 9:23 PM 218 Crime_Data_in_R.Rproj
-a---- 3/9/2023 9:23 PM 119 environment.yml
-a---- 3/9/2023 9:23 PM 135 install.r
-a---- 3/9/2023 9:23 PM 1475 README.md
-a---- 3/9/2023 9:23 PM 19 runtime.txt
I am on a window machine, I believe the error is because the spaces of the folder/file names
'March_2023/Webinar /Live Code Demo Slide Deck.pptx'
'March_2023/Webinar /Mapping Crime Data in R Day 1 (03_2023) copy.pptx'
@NadiaK98 would you please clean the names? Thank you
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels