git pull file:////<machine_name>E$/path/to/repo/root
Thursday, 28 April 2016
Pull from a shared Windows machine
As a distributed version control system, one of the benefits of using git is that you can pull from anyone's repo just as you would do from a server. With Git's support for SSH, it is very easy to do it on Linux. Two Windows machines don't talk SSH to each other though. So, I was not sure how to pull from my repo on one Windows machine to another. It turned out equally easy though (may be easier).
Drives like E: and C: get replaced by E$ and C$ respectively. As both of my machines were on the same domain, it was easy. Sharing might come into picture for machines on different domains.