bosichong/PrimarySchoolMathematics

Cannot clone in windows due to invalid path

brucezlata opened this issue · 8 comments

Cloning into 'PrimarySchoolMathematics'...
remote: Enumerating objects: 285, done.
remote: Total 285 (delta 0), reused 0 (delta 0), pack-reused 285
Receiving objects: 100% (285/285), 138.13 KiB | 260.00 KiB/s, done.
Resolving deltas: 100% (175/175), done.
error: invalid path '布局文件/:Users:mac:PycharmProjects:PrimarySchoolMath:Users:mac.wxg'
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 :/'

root cause:
colon is reserved char.
Use any character in the current code page for a name, including Unicode characters and characters in the extended character set (128–255), except for the following:

The following reserved characters:

< (less than)
(greater than)

### : (colon)
" (double quote)
/ (forward slash)
\ (backslash)
| (vertical bar or pipe)
? (question mark)
(asterisk)

error: invalid path '布局文件/:Users:mac:PycharmProjects:PrimarySchoolMath:Users:mac.wxg'

Can you change the naming of this file?

The running of the program has nothing to do with this file,
If you need this file, I can send it to your mailbox,
Do you need it?

I have changed the name of that file to English

The root cause is character : (colon). It is a reserved character for windows OS. Cannot name a file name using colon.

So, could you please change name of :Users:mac:PycharmProjects:PrimarySchoolMath:Users:mac.wxg to unblock windows git clone?

Or delete :Users:mac:PycharmProjects:PrimarySchoolMath:Users:mac.wxg

The file name has been modified. Try clone again (* ̄︶ ̄)

如果还是不能clone,你可以试试下载压缩的.zip包

Problem was solved.