I get asked a good number of times “How do I clone a local Git Repository?”. So do make it easy I am going to pust it on my blog site so I can just follow the link to in. are you ready??

This worked for me:

git clone file:////<host>/<share>/<path>

For example, if your main machine has the IP and the computer name main, and it has a share named code which itself is a git repository, the both of the following commands should work equally:

git clone file:////main/code
git clone file:////

If the git repository is in a subdirectory, simply append the path.

You can see the full list of Git Interview Questions Here

If you have any questions or comments please email me at john@johnathanmarksmith.com


16 April 2013