Geeks With Blogs
Joe Mayo

Not sure why I keep forgetting this, but it bites me occasionally and maybe writing it down will prevent a search that results in Linux shell non-answers. I currently use Windows 10, but this is the case for previous versions too. The problem is that I keep forgetting that git clone requires forward slashes, rather than back slashes. In normal cases, back slashes work, as in:

 

>net use \\someshare mypassword /USER:mydomain\mylogin

 

However, cloning a git repository like this:

 

>git clone \\someshare\git\someproject

 

gives me:

 

Cloning into 'someproject'...
fatal: '\someshare\git\someproject\' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

 

grrrr…  <<= that’s me

 

To fix that, switch from back-slashes to forward-slashes like this:

 

>git clone //someshare/git/someproject

 

and life is good.

 

@JoeMayo

Posted on Wednesday, December 2, 2015 2:29 PM | Back to top

Copyright © Joe Mayo | Powered by: GeeksWithBlogs.net