Open fdq09eca opened 1 year ago
Hi, thank you for sharing this error. I believe the issue was due to long file name when working in Git for Windows. I've gone ahead and cleaned the names so please leave another comment if this issue persists.
For future reference, you can circumvent this by running Git Bash as administrator (right-clicking the app shortcut will show the option to Run as Administrator ) and then setting core.longpaths to true as seen here
git config --system core.longpaths true
.
Thank You
Hi @NadiaK98, an error has also occurred when I tried to set up a new project using Git Version Control. the error message was:
error: invalid path 'Feb_2024/Webinar /.DS_Store'
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 :/'
UPDATE: I have now downloaded a zip of the git directly from https://github.com/UKDataServiceOpen/Crime_Data_in_R and I can open the R project within that. Is that a sufficient workaround for the workshop?
Hi, sorry for the delayed response! Thank you for pointing out that error with the .DS_store files. These were accidentally committed to the repository but have now been removed and cloning should work. Downloading the content as a zip file also works, you will still be able to follow along with the content but make sure to have downloaded the most recent repo since changes have been made!
Thank you @NadiaK98. I have just attempted the clone the repository again and I got the following error:
error: invalid path 'Feb_2024/Webinar /MCDR_Menti_Results_Session1_2024.pdf'
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 :/'
I will download the zip file again before the session tomorrow.
see error below
file/folder can be retrieved by
git restore --source=HEAD :/
I am on a window machine, I believe the error is because the spaces of the folder/file names
@NadiaK98 would you please clean the names? Thank you