Skip to content

Instantly share code, notes, and snippets.

@JohnathanMarkSmith
Last active December 16, 2015 15:19
Show Gist options
  • Save JohnathanMarkSmith/5454977 to your computer and use it in GitHub Desktop.
Save JohnathanMarkSmith/5454977 to your computer and use it in GitHub Desktop.
How to clone a local Git Repository
oHow to clone a local Git Repository
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 192.168.10.51 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:////192.168.10.51/code
If the git repository is in a subdirectory, simply append the path.
@JohnathanMarkSmith
Copy link
Author

How to clone a local Git Repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment