Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 7
    This worked for me for file paths with spaces: git clone -l file://"C:\SOME PATH\WITH SPACES" my_project Commented Feb 3, 2012 at 15:26
  • 1
    Great help. This works for me in my windows 7 machine .<from git bash command prompt >something like : git clone file:///C:/Users/username/repsitoryName Commented Dec 31, 2012 at 9:38
  • you will probably want to set the remote afterwards.. otherwise it points to your other local as origin which I find super error-prone. use git remote -v;git remote rm origin; git add origin <repo-address> (which you may copy after doing git remote -v on the original local repo) Commented Apr 24, 2013 at 10:07
  • This is correct, you don't need to use a url form like file:////, you can just clone a directory. Commented Jun 30, 2014 at 18:57