2016-12-14 270 views
1

我想克隆一個github倉庫到我的本地windows機器url:https://github.com/Patrick-The-Star/codility-lessons.git。但我得到這個結果:無法從github克隆git倉庫

Cloning into 'codility-lessons'... 
remote: Counting objects: 349, done. 
emote: Total 349 (delta 0), reused 0 (delta 0), pack-reused 349 
Receiving objects: 100% (349/349), 2.38 MiB | 1.09 MiB/s, done. 
Resolving deltas: 100% (115/115), done. 
Checking connectivity... done. 
fatal: cannot create directory at 'lesson 1 : Time Complexity': Invalid argument 
warning: Clone succeeded, but checkout failed. 
You can inspect what was checked out with 'git status' 
and retry the checkout with 'git checkout -f HEAD' 

我研究了一下,似乎我需要有足夠的磁盤空間,我這樣做。我認爲這是因爲文件名,它在文件「課程1:時間複雜度」中有空格,但我不確定。無論哪種方式,我如何解決這個問題?

+0

文件名中的空格不會導致任何結帳問題。你輸入了什麼命令來克隆回購? git狀態的輸出是什麼?克隆本身看起來像是成功的,其他東西似乎是錯的。 –

+1

名稱中的冒號是問題所在。 https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx#file_and_directory_names – murtuza

+0

@ murtuza任何想法如何解決這個問題? –

回答