git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Adding push configuration to .git/config
@ 2007-11-21 10:55 Nico -telmich- Schottelius
  2007-11-21 22:02 ` Steffen Prohaska
  2007-11-22  1:48 ` Junio C Hamano
  0 siblings, 2 replies; 17+ messages in thread
From: Nico -telmich- Schottelius @ 2007-11-21 10:55 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 857 bytes --]

Hello guys!

We are working pretty much with branches here and I think it would be
pretty cool, to make git-push recognize some configuratio in
~/.git/config that describes where to push what:

   git-push origin master:<name of worker> is what we currenty do
   manually

Nice would be

[branch "master"]
   remote-push          = origin
   remote-push-merge    = another_branch

And thus perhaps also changing the existing specs:

   remote = ... to remote-fetch = ...
   merge = ... to remote-fetch-merge = 

And perhaps it would also make sense to replace "refs/heads/master" with
only "master"?

What do you think about those three ideas?

Nico

-- 
Think about Free and Open Source Software (FOSS).
http://nico.schottelius.org/documentations/foss/the-term-foss/

PGP: BFE4 C736 ABE5 406F 8F42  F7CF B8BE F92A 9885 188C

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: Adding push configuration to .git/config
@ 2007-11-23 13:07 MichaelTiloDressel
  0 siblings, 0 replies; 17+ messages in thread
From: MichaelTiloDressel @ 2007-11-23 13:07 UTC (permalink / raw)
  To: prohaska; +Cc: git


On Nov 22, 2007, at 12:23 PM, Johannes Schindelin wrote:
>You know that I believe the current default is not such a
>choice.

To me the default is not very clear. I read somewhere (I wish I could
find where that was again)
that push will e.g. push all the remotes that do not contain a push line
by default 
(or maybe only in case the remote belonging to the current branch does
not contain a push?).

Anyway the way I try at the moment to have push by default only push the
current branch 
is by setting up a separate remote for each branch even if they belong
to the same remote
subdirectory. In addition I have a remote named origin which contains a
line:
push = nothing:nowhere
which creates an error for the default case that has no explicit remote.

My .git/config looks something like this:

[remote "origin"
        url = git+ssh://myuid@server/gitrepos/myprogit
        fetch = +refs/heads/master:refs/remotes/origin/master
        fetch =
+refs/heads/TopicA_v0.14_Branch:refs/remotes/origin/TopicA_v0.14_Branch
        fetch =
+refs/heads/mypro-v0.31_Branch:refs/remotes/origin/mypro-v0.31_Branch
        push = nothing:nowhere
[remote "master"]
        url = git+ssh://myuid@server/gitrepos/myprogit
        fetch = +refs/heads/master:refs/remotes/origin/master
        push = refs/heads/master:refs/heads/master
[remote "topicA"]
        url = git+ssh://myuid@server/gitrepos/myprogit
        fetch =
+refs/heads/TopicA_v0.14_Branch:refs/remotes/origin/TopicA_v0.14_Branch
        push =
refs/heads/TopicA_v0.14_Branch:refs/heads/TopicA_v0.14_Branch
[remote "mypro-v0.31"]
        url = git+ssh://myuid@server/gitrepos/myprogit
        fetch =
+refs/heads/mypro-v0.31_Branch:refs/remotes/origin/mypro-v0.31_Branch
        push =
refs/heads/mypro-v0.31_Branch:refs/heads/mypro-v0.31_Branch
[branch "master"]
        remote = master
        merge = refs/heads/master
[branch "mypro-v0.31_Branch"]
        remote = mypro-v0.31
        merge = refs/heads/mypro-v0.31_Branch
[branch "TopicA_v0.14_Branch"]
        remote = topicA
        merge = refs/heads/TopicA_v0.14_Branch


Cheers,
Michael

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2007-11-30  0:39 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-21 10:55 Adding push configuration to .git/config Nico -telmich- Schottelius
2007-11-21 22:02 ` Steffen Prohaska
2007-11-22  1:48 ` Junio C Hamano
2007-11-22  7:08   ` Steffen Prohaska
2007-11-22  7:52     ` Andreas Ericsson
2007-11-22  8:28       ` Junio C Hamano
2007-11-22  8:23     ` Junio C Hamano
2007-11-22  8:54       ` Steffen Prohaska
2007-11-22 11:23         ` Johannes Schindelin
2007-11-22 11:49           ` Junio C Hamano
2007-11-22 11:59             ` Andreas Ericsson
2007-11-22 18:22           ` Steffen Prohaska
2007-11-28 22:15           ` Nico -telmich- Schottelius
2007-11-28 23:50             ` Johannes Schindelin
2007-11-29 22:46             ` Junio C Hamano
2007-11-30  0:37               ` Jakub Narebski
  -- strict thread matches above, loose matches on Subject: below --
2007-11-23 13:07 MichaelTiloDressel

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).