git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Konstantin Khomoutov <flatworm@users.sourceforge.net>
To: "J.V." <jvsrvcs@gmail.com>
Cc: git mailing list <git@vger.kernel.org>
Subject: Re: How to pull from windows box
Date: Thu, 16 Aug 2012 20:28:39 +0400	[thread overview]
Message-ID: <20120816202839.3fb84d2a98ebf6c25c0cf9e1@domain007.com> (raw)
In-Reply-To: <502CF180.2030605@gmail.com>

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

> 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).

      reply	other threads:[~2012-08-16 16:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-16 13:11 How to pull from windows box J.V.
2012-08-16 16:28 ` Konstantin Khomoutov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120816202839.3fb84d2a98ebf6c25c0cf9e1@domain007.com \
    --to=flatworm@users.sourceforge.net \
    --cc=git@vger.kernel.org \
    --cc=jvsrvcs@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).