Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fatal: Unable to checkout working tree

I am cloning the master branch from a GitHub repo onto my system. It throws this error:

Checking connectivity ...done eate file Icon fatal: unable to checkout working tree warning: Clone succeeded, but checkout failed.

I've tried to include the suggestions for line ending problems in Windows as the help doc suggests but still I am facing the same issue.

How can this be solved?

  • Windows 7
like image 987
Alok Nath Saha Avatar asked Jul 22 '14 22:07

Alok Nath Saha


2 Answers

As I know of, you will want to modify any file names containing: \, /, :, *, ?, ", <, >, or |, as Windows does not comply with those symbols for file naming purposes.

A nice and simple "fix" would be to download the files as a zip archive (which is supported by github), then modify the troublesome file names in File Explorer and then, finally, extract the zip archive in your desired directory.

like image 93
willfliaw Avatar answered Oct 22 '22 01:10

willfliaw


Some documents in the file name under Windows is illegal. Delete these files to, or use OS X to modify the file name and then clone under Windows.

Git can't checkout a repo from github

like image 20
iugo Avatar answered Oct 22 '22 02:10

iugo