From: Jakub Narebski <jnareb@gmail.com>
To: "Paul Holbrook" <paul.holbrook@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Accessing a single repository with different addresses?
Date: Tue, 06 May 2008 17:33:36 -0700 (PDT) [thread overview]
Message-ID: <m3myn354wy.fsf@localhost.localdomain> (raw)
In-Reply-To: <8c0610ed0805060951x70ede89bq5a93e69aece8c8c7@mail.gmail.com>
"Paul Holbrook" <paul.holbrook@gmail.com> writes:
> I have two machines at home that I've been using to play with git: a
> desktop box and a laptop. I set up a repository on the desktop, and
> cloned it to the laptop via ssh, but using just a local 192.168.x.x
> address. However, when I leave the house, I'd still like to be able
> to talk to the desktop repository, which I can still do via ssh back
> to the house - but now the address for that very same repository is
> not a 192 address, but a DNS name. What's the best way to handle
> this?
If I remember correctly git doesn't (yet?) implements multiple-URL
fetch URIs, where first URL that works is used.
If I understand correctly you want to connect (fetch from) your
desktop machine from your laptop. And this laptop is either connected
to local network (local IP), or to Internet (DNS address). The
simplest way would be to create two 'remotes', e.g. dektop-local and
desktop, or desktop and desktop-dns, which differn only in URL used.
In this case url.<base>.insteadOf config variable (new feature)
wouln't help, I think....
--
Jakub Narebski
Poland
ShadeHawk on #git
prev parent reply other threads:[~2008-05-07 0:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-06 16:51 Accessing a single repository with different addresses? Paul Holbrook
2008-05-06 16:58 ` Luciano Rocha
2008-05-07 0:33 ` Jakub Narebski [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=m3myn354wy.fsf@localhost.localdomain \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
--cc=paul.holbrook@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).