{"thread":{"id":"10992","subject":"Re: Adding push configuration to .git/config","startedAt":"2007-11-23T13:07:13Z","lastAt":"2007-11-23T13:07:13Z","messageCount":1,"participants":["MichaelTiloDressel@t-online.de"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"60760","messageId":"1IvYFV-0vJb1s0@fwd35.aul.t-online.de","threadId":"10992","inReplyTo":null,"subject":"Re: Adding push configuration to .git/config","fromName":"MichaelTiloDressel@t-online.de","fromEmail":"michaeltilodressel@t-online.de","sentAt":"2007-11-23T13:07:13Z","receivedAt":"2007-11-23T13:07:13Z","isPatch":false,"sender":{"key":"michaeltilodressel@t-online.de","avatar":null},"body":"\nOn Nov 22, 2007, at 12:23 PM, Johannes Schindelin wrote:\n>You know that I believe the current default is not such a\n>choice.\n\nTo me the default is not very clear. I read somewhere (I wish I could\nfind where that was again)\nthat push will e.g. push all the remotes that do not contain a push line\nby default \n(or maybe only in case the remote belonging to the current branch does\nnot contain a push?).\n\nAnyway the way I try at the moment to have push by default only push the\ncurrent branch \nis by setting up a separate remote for each branch even if they belong\nto the same remote\nsubdirectory. In addition I have a remote named origin which contains a\nline:\npush = nothing:nowhere\nwhich creates an error for the default case that has no explicit remote.\n\nMy .git/config looks something like this:\n\n[remote \"origin\"\n        url = git+ssh://myuid@server/gitrepos/myprogit\n        fetch = +refs/heads/master:refs/remotes/origin/master\n        fetch =\n+refs/heads/TopicA_v0.14_Branch:refs/remotes/origin/TopicA_v0.14_Branch\n        fetch =\n+refs/heads/mypro-v0.31_Branch:refs/remotes/origin/mypro-v0.31_Branch\n        push = nothing:nowhere\n[remote \"master\"]\n        url = git+ssh://myuid@server/gitrepos/myprogit\n        fetch = +refs/heads/master:refs/remotes/origin/master\n        push = refs/heads/master:refs/heads/master\n[remote \"topicA\"]\n        url = git+ssh://myuid@server/gitrepos/myprogit\n        fetch =\n+refs/heads/TopicA_v0.14_Branch:refs/remotes/origin/TopicA_v0.14_Branch\n        push =\nrefs/heads/TopicA_v0.14_Branch:refs/heads/TopicA_v0.14_Branch\n[remote \"mypro-v0.31\"]\n        url = git+ssh://myuid@server/gitrepos/myprogit\n        fetch =\n+refs/heads/mypro-v0.31_Branch:refs/remotes/origin/mypro-v0.31_Branch\n        push =\nrefs/heads/mypro-v0.31_Branch:refs/heads/mypro-v0.31_Branch\n[branch \"master\"]\n        remote = master\n        merge = refs/heads/master\n[branch \"mypro-v0.31_Branch\"]\n        remote = mypro-v0.31\n        merge = refs/heads/mypro-v0.31_Branch\n[branch \"TopicA_v0.14_Branch\"]\n        remote = topicA\n        merge = refs/heads/TopicA_v0.14_Branch\n\n\nCheers,\nMichael\n"}]}