All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Parkins <andyparkins@gmail.com>
To: git@vger.kernel.org
Cc: Linus Torvalds <torvalds@linux-foundation.org>, plexq@plexq.com
Subject: Re: Problem with a push
Date: Tue, 12 Jun 2007 10:07:15 +0100	[thread overview]
Message-ID: <200706121007.17044.andyparkins@gmail.com> (raw)
In-Reply-To: <alpine.LFD.0.98.0706111556160.14121@woody.linux-foundation.org>

On Tuesday 2007 June 12, Linus Torvalds wrote:

> Ok, pushing out remote branches is a bit odd in the first place. As in
> "you probably shouldn't do that". The "remote" branches are really local
> to each repo, and updating them by pushing is really quite suspect.

I agree its odd, but is it really true that one (I) shouldn't be doing it?

Can I tell you what I'm doing, and check that it's not crazy...

I have my laptop and my desktop computer; I use both for development.  I've 
set them so that they are symmetric...

laptop:.git/config
 [remote "desktop"]
   url = ssh://blah blah blah
   fetch = refs/heads/*:refs/remotes/desktop/*
   push = refs/heads/*:refs/remotes/laptop/*

desktop:.git/config
 [remote "laptop"]
   url = ssh://blah blah blah
   fetch = refs/heads/*:refs/remotes/laptop/*
   push = refs/heads/*:refs/remotes/desktop/*

This is very handy, as git-push on one does the same as git-fetch on the 
other.  Have I made a glaring mistake by pushing to a remote ref?


Andy
-- 
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com

  parent reply	other threads:[~2007-06-12  9:07 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-11 21:32 Problem with a push Alex R.M. Turner
2007-06-11 23:03 ` Linus Torvalds
2007-06-11 23:35   ` Alex R.M. Turner
2007-06-12  0:40     ` Linus Torvalds
2007-06-12  1:35       ` Junio C Hamano
2007-06-12 18:14       ` Alex R.M. Turner
2007-06-12 18:46         ` Linus Torvalds
2007-06-12 20:15       ` Jon Loeliger
2007-06-11 23:49   ` Junio C Hamano
2007-06-12  9:07   ` Andy Parkins [this message]
2007-06-12 15:07     ` Linus Torvalds
2007-06-12 17:00       ` Junio C Hamano
2007-06-12 18:01         ` Linus Torvalds
2007-06-12 23:38         ` Martin Langhoff
2007-07-02  2:00         ` [PATCH] "git-push $URL" without refspecs pushes only matching branches Junio C Hamano

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=200706121007.17044.andyparkins@gmail.com \
    --to=andyparkins@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=plexq@plexq.com \
    --cc=torvalds@linux-foundation.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.