{"thread":{"id":"10806","subject":"Re: cogito remote branch","startedAt":"2007-11-11T13:11:13Z","lastAt":"2007-11-11T13:11:13Z","messageCount":1,"participants":["Michael Dressel"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"59318","messageId":"Pine.LNX.4.64.0711111409440.9401@castor.milkiway.cos","threadId":"10806","inReplyTo":null,"subject":"Re: cogito remote branch","fromName":"Michael Dressel","fromEmail":"michaeltilodressel@t-online.de","sentAt":"2007-11-11T13:11:13Z","receivedAt":"2007-11-11T13:11:13Z","isPatch":false,"sender":{"key":"michaeltilodressel@t-online.de","avatar":null},"body":"\n\n>Michael Dressel wrote:\n>Ok nice. Another thing is that git-push will push all the tracking \n>branches in refs/remotes/origin. \n\nI learned that I only have to edit the .git/config file to avoid that \ngit-push pushes everything. \n\nI modified the remotes names and added push lines explicitly.\n\nIs that the recommended way?\n\nIn my example (git-branch -a -v):\n* exp                 aa854c6 shtest 4\n  master              34924b9 mastertest 1\n  origin/exp          aa854c6 shtest 4\n  origin/master       b68e7a9 brt master 1\n\nI used the following .git/config:\n[core]\n        repositoryformatversion = 0\n        filemode = true\n        bare = false\n        logallrefupdates = true\n[remote \"origin1\"]\n        url = /home/repo/src\n        fetch = +refs/heads/master:refs/remotes/origin/master\n        push = +refs/heads/master:refs/heads/master\n[remote \"origin2\"]\n        url = /home/repo/src\n        fetch = +refs/heads/exp:refs/remotes/origin/exp\n        push = +refs/heads/exp:refs/heads/exp\n[branch \"master\"]\n        remote = origin1\n        merge = refs/heads/master\n[branch \"exp\"]\n        remote = origin2\n        merge = refs/heads/exp\n\nCheers,\nMichael\n"}]}