{"thread":{"id":"31262","subject":"How to pull from windows box","startedAt":"2012-08-16T13:11:28Z","lastAt":"2012-08-16T16:28:39Z","messageCount":2,"participants":["J.V.","Konstantin Khomoutov"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"197100","messageId":"502CF180.2030605@gmail.com","threadId":"31262","inReplyTo":null,"subject":"How to pull from windows box","fromName":"J.V.","fromEmail":"jvsrvcs@gmail.com","sentAt":"2012-08-16T13:11:28Z","receivedAt":"2012-08-16T13:11:28Z","isPatch":false,"sender":{"key":"jvsrvcs@gmail.com","avatar":null},"body":"We have a central/shared bare repo setup on a Linux box by our scc/build \nteam.\n\nEach developer pulls/pushes to this repo.  I have two windows boxes \nwhere I have cloned the repo.  I want to commit and then on my second \nwindows box pull from my other box and keep those in sync until it is \ntime to push to central.\n\nWhat do I need to setup on each Windows 7 box to get this working?\n\nJ.V.\n"},{"id":"197108","messageId":"20120816202839.3fb84d2a98ebf6c25c0cf9e1@domain007.com","threadId":"31262","inReplyTo":"502CF180.2030605@gmail.com","subject":"Re: How to pull from windows box","fromName":"Konstantin Khomoutov","fromEmail":"flatworm@users.sourceforge.net","sentAt":"2012-08-16T16:28:39Z","receivedAt":"2012-08-16T16:28:39Z","isPatch":false,"sender":{"key":"flatworm@users.sourceforge.net","avatar":null},"body":"On Thu, 16 Aug 2012 07:11:28 -0600\n\"J.V.\" <jvsrvcs@gmail.com> wrote:\n\n> We have a central/shared bare repo setup on a Linux box by our\n> scc/build team.\n> \n> Each developer pulls/pushes to this repo.  I have two windows boxes \n> where I have cloned the repo.  I want to commit and then on my second \n> windows box pull from my other box and keep those in sync until it is \n> time to push to central.\n> \n> What do I need to setup on each Windows 7 box to get this working?\n\nCreate a regular Windows share for the project directory on the box\nyou want to fetch from, ensure your user from another box is able to\nsuccessfully authenticate on that share, and then on that box add\nthe created share as a remote like this:\n\ngit remote add otherbox file:////thatbox/sharename\n\nTo fetch from that \"otherbox\" remote you then go like this:\n1) Run Windows Explorer, navigate to \\\\thatbox\\sharename,\n   authenticate (if needed).  This will ensure all the next accesses\n   will be automatically authenticated.\n2) Do `git fetch otherbox`.\n\nOf course, you can just attach that share as a network drive and then\nmodify the URL for your remote accordingly.\n\nNote that since the repos are normal (non-bare) this will work well only\nfor fetches (see the FAQ for more info).\n"}]}