Last active
December 16, 2015 15:19
-
-
Save JohnathanMarkSmith/5454977 to your computer and use it in GitHub Desktop.
How to clone a local Git Repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to clone a local Git Repository