Re: Accessing a single repository with different addresses?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Paul Holbrook" <paul.holbrook@xxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux