Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 1 of 4

Error in clone because of the folder name

Solved! Go to Solution.

Hi

I try clone a repository to my pc, but return a error saying:

 

Receiving objects: 100% (23434/23434), 324.09 MiB | 579.00 KiB / s, done.
Resolving deltas: 100% (4964/4964), done.
error: invalid path 'C: \ pharos \ storage \ logs / laravel.log'
fatal: can not create directory at 'pharos / public / C: \ pharos \ storage \ logs': Invalid argument
warning: Clone succeeded, but checkout failed.
You can check what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

 

Making a search, i think the error is because of the folder name which has the character '\'.

I am right? If yes, how do I rename the folder name directly in git hub?

3 Replies
Commander Lvl 2
Message 2 of 4

Re: Error in clone because of the folder name

Hi @ricardomuller90,

 

Welcome to the Github Community Forum!

 

Could you please post the command run? or the desktop app you used?

 

Something strange indeed, it's like a windows unix combo mix.

Look at pharos/public/C:\storage\logs, there is two different approach:

  • unix format for pharos/public/
  • windows format for C:\storage\logs

Do you use a linux console (like ubuntu) inside windows?

 

-Gabriele-

 

Mark helpfull posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great contents!

Copilot Lvl 3
Message 3 of 4

Re: Error in clone because of the folder name

Hi!

Yes!

to clone i used the command: git clone 

i'm using the gitbash terminal in windows.

Solution
Copilot Lvl 3
Message 4 of 4

Re: Error in clone because of the folder name

I solved excluding the file, so the folder disappear and I could make the clone have successful. thanks