<Python git clone error> warning: Clone succeeded, but check out failed

Asked 2 years ago, Updated 2 years ago, 55 views

I entered the following command

The following error appears:

How do I solve this?

git clone https://github.com/YerevaNN/mimic3-benchmarks/
error: invalid path 'mimic3models/decompensation/decomp_ts0.8.input_str:previous.n1e5.start_time:zero.normalizer'

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 :/'

python git

2022-09-20 11:12

1 Answers

This error occurs because the name of the mimic3models/decomposition/decomposition_ts0.8. input_str:previous.n1e5.start_time:zero.normalizer file contains the characters : that the Windows file system does not allow.

For your information, if I clone from Windows, the same error is not wrong in WSL Ubuntu environment.

I searched and found that you should modify the file in question (...): https://brendanforster.com/notes/fixing-invalid-git-paths-on-windows/

But it seems that you didn't make that sauce yourself, but you're just going to use it, but it's going to be hard to modify the file yourself, so why don't you try WSL at this time 😆


2022-09-20 11:12

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.