bosichong / PrimarySchoolMathematics

孩子上小学一年级了,加减乘除的口算就要开始练习了,估计老师肯定会让家长出题,所以提前准备一下,利用Python开发了一套自动生成小学生口算题的小应用。而且今天是程序员节,撸200行代码庆祝一下。:)

Home Page:https://suiyan.cc/demo/psm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot clone in windows due to invalid path

brucezlata opened this issue · 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?

commented

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?

commented

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

commented

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

commented

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

Problem was solved.