git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: How to pull from windows box

From
KKKonstantin Khomoutov <flatworm@users.sourceforge.net>
Date
Aug 16, 2012, 16:28 UTC
Message-ID
<20120816202839.3fb84d2a98ebf6c25c0cf9e1@domain007.com>
In-Reply-To
<502CF180.2030605@gmail.com>

On Thu, 16 Aug 2012 07:11:28 -0600 "J.V." <jvsrvcs@gmail.com> wrote:

Show 9 quoted lines
> We have a central/shared bare repo setup on a Linux box by our
> scc/build team.
> 
> Each developer pulls/pushes to this repo.  I have two windows boxes 
> where I have cloned the repo.  I want to commit and then on my second 
> windows box pull from my other box and keep those in sync until it is 
> time to push to central.
> 
> What do I need to setup on each Windows 7 box to get this working?

Create a regular Windows share for the project directory on the box you want to fetch from, ensure your user from another box is able to successfully authenticate on that share, and then on that box add the created share as a remote like this:

git remote add otherbox file:////thatbox/sharename
To fetch from that "otherbox" remote you then go like this:
1) Run Windows Explorer, navigate to \\thatbox\sharename,
   authenticate (if needed).  This will ensure all the next accesses
   will be automatically authenticated.
2) Do `git fetch otherbox`.

Of course, you can just attach that share as a network drive and then modify the URL for your remote accordingly.

Note that since the repos are normal (non-bare) this will work well only for fetches (see the FAQ for more info).

Previous: J.V.
Message 2 of 2 in “How to pull from windows box”
  1. J.V.Aug 16, 2012
  2. Konstantin KhomoutovAug 16, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.