git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tim Visher <tim.visher@gmail.com>
To: Jeff King <peff@peff.net>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: Different Fetch and Push URLs?
Date: Fri, 26 Feb 2010 10:32:30 -0500	[thread overview]
Message-ID: <c115fd3c1002260732x79f44d8ft6bff9d9b4f226402@mail.gmail.com> (raw)
In-Reply-To: <20100226152043.GA26963@coredump.intra.peff.net>

On Fri, Feb 26, 2010 at 10:20 AM, Jeff King <peff@peff.net> wrote:
> On Fri, Feb 26, 2010 at 10:01:40AM -0500, Tim Visher wrote:
>
>> My work situation leaves me in a situation where I can clone from my
>> central repo but I can't push there.  Is it possible and does it make
>> any sense to have a single remote with one URL that I pull from and
>> another than I push to?  I only ask because I was looking at the
>> output of `git remote show` and noticed that there are 2 URLs.  If it
>> is possible, how do I do it?  I looked in `.git/config` and there's
>> only 1 URL there.
>
> Try "remote.*.pushurl". It's in git-config(1) and in git-push(1) under
> "Named remote in configuration file".

Thanks, both of you.  That worked like a charm.

-- 

In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail

      reply	other threads:[~2010-02-26 15:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-26 15:01 Different Fetch and Push URLs? Tim Visher
2010-02-26 15:18 ` Tomas Carnecky
2010-02-26 15:20 ` Jeff King
2010-02-26 15:32   ` Tim Visher [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=c115fd3c1002260732x79f44d8ft6bff9d9b4f226402@mail.gmail.com \
    --to=tim.visher@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=peff@peff.net \
    /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).