Re: Problem with a push

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

 



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@xxxxxxxxx
-
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