{"thread":{"id":"13421","subject":"How can I specify multiple refs on one line in the config file?","startedAt":"2008-05-07T21:15:47Z","lastAt":"2008-05-08T03:32:45Z","messageCount":9,"participants":["Steve Hoelzer","Thomas Adam","Miklos Vajna","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"76322","messageId":"588192970805071415wb7b502ch2047ac5e4865c296@mail.gmail.com","threadId":"13421","inReplyTo":null,"subject":"How can I specify multiple refs on one line in the config file?","fromName":"Steve Hoelzer","fromEmail":"shoelzer@gmail.com","sentAt":"2008-05-07T21:15:47Z","receivedAt":"2008-05-07T21:15:47Z","isPatch":false,"sender":{"key":"shoelzer@gmail.com","avatar":"https://avatars.githubusercontent.com/u/4623209?v=4"},"body":"How can I specify multiple refs on one line in the config file? For\nexample, I want \"git push\" to push all heads and all tags by default\nso I tried this:\n\n    [remote \"origin\"]\n    \tpush = refs/heads/* refs/tags/*\n\nThat doesn't work, of course, but I imagine it is possible, and I just\ncan't figure out the syntax.\n\nThanks,\nSteve\n"},{"id":"76323","messageId":"18071eea0805071433j5bde8868w305d9a80c00bd2bd@mail.gmail.com","threadId":"13421","inReplyTo":"588192970805071415wb7b502ch2047ac5e4865c296@mail.gmail.com","subject":"Re: How can I specify multiple refs on one line in the config file?","fromName":"Thomas Adam","fromEmail":"thomas.adam22@gmail.com","sentAt":"2008-05-07T21:33:12Z","receivedAt":"2008-05-07T21:33:12Z","isPatch":false,"sender":{"key":"thomas.adam22@gmail.com","avatar":"https://gravatar.com/avatar/137f9858bc6bfd5b2f743aefd988c81ce0cbd306248889df80e269519cfc8741?d=mp&s=160"},"body":"2008/5/7 Steve Hoelzer <shoelzer@gmail.com>:\n> How can I specify multiple refs on one line in the config file? For\n>  example, I want \"git push\" to push all heads and all tags by default\n>  so I tried this:\n>\n>     [remote \"origin\"]\n>         push = refs/heads/* refs/tags/*\n>\n>  That doesn't work, of course, but I imagine it is possible, and I just\n>  can't figure out the syntax.\n\nI might be misunderstanding you, but to push tags, there's:\n\ngit push --tags\n\nI know that's not inclusive of anything else.\n\n-- Thomas Adam\n"},{"id":"76327","messageId":"588192970805071519i76c23367ue497e37445fa7c74@mail.gmail.com","threadId":"13421","inReplyTo":"18071eea0805071433j5bde8868w305d9a80c00bd2bd@mail.gmail.com","subject":"Re: How can I specify multiple refs on one line in the config file?","fromName":"Steve Hoelzer","fromEmail":"shoelzer@gmail.com","sentAt":"2008-05-07T22:19:30Z","receivedAt":"2008-05-07T22:19:30Z","isPatch":false,"sender":{"key":"shoelzer@gmail.com","avatar":"https://avatars.githubusercontent.com/u/4623209?v=4"},"body":"On Wed, May 7, 2008 at 4:33 PM, Thomas Adam <thomas.adam22@gmail.com> wrote:\n> I might be misunderstanding you, but to push tags, there's:\n>\n> git push --tags\n\nTrue, but I only want to type \"git push\". No, it's not _really_\nnecessary, but I'd like to set it up that way so I don't have to\ndepend on my coworkers (new git users) remembering \"--tags\".\n\nSteve\n"},{"id":"76328","messageId":"20080507222751.GC23672@genesis.frugalware.org","threadId":"13421","inReplyTo":"588192970805071519i76c23367ue497e37445fa7c74@mail.gmail.com","subject":"Re: How can I specify multiple refs on one line in the config file?","fromName":"Miklos Vajna","fromEmail":"vmiklos@frugalware.org","sentAt":"2008-05-07T22:27:51Z","receivedAt":"2008-05-07T22:27:51Z","isPatch":false,"sender":{"key":"vmiklos@frugalware.org","avatar":"https://gravatar.com/avatar/401c1cbbb3a5d13e650c691a2c71d6fd0b80df1a01bc74d9f1972675dd58f2bd?d=mp&s=160"},"body":"On Wed, May 07, 2008 at 05:19:30PM -0500, Steve Hoelzer <shoelzer@gmail.com> wrote:\n> On Wed, May 7, 2008 at 4:33 PM, Thomas Adam <thomas.adam22@gmail.com> wrote:\n> > I might be misunderstanding you, but to push tags, there's:\n> >\n> > git push --tags\n> \n> True, but I only want to type \"git push\". No, it's not _really_\n> necessary, but I'd like to set it up that way so I don't have to\n> depend on my coworkers (new git users) remembering \"--tags\".\n\nare you sure pushing tags by default is a good idea? people regularly\ncreate local tags to mark a commit before a rebase, to mark a commit as\na fix for a given bug, etc. those tags aren't interesting for others.\ntags which should be pushed usually rare. then you can use git push\norigin tag v1.0, since you know which tag you really want to push.\n"},{"id":"76329","messageId":"20080507222813.GF5994@sigill.intra.peff.net","threadId":"13421","inReplyTo":"588192970805071415wb7b502ch2047ac5e4865c296@mail.gmail.com","subject":"Re: How can I specify multiple refs on one line in the config file?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2008-05-07T22:28:13Z","receivedAt":"2008-05-07T22:28:13Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, May 07, 2008 at 04:15:47PM -0500, Steve Hoelzer wrote:\n\n> How can I specify multiple refs on one line in the config file? For\n> example, I want \"git push\" to push all heads and all tags by default\n> so I tried this:\n> \n>     [remote \"origin\"]\n>     \tpush = refs/heads/* refs/tags/*\n> \n> That doesn't work, of course, but I imagine it is possible, and I just\n> can't figure out the syntax.\n\nI imagine it is possible, too, but not with one line. How about:\n\n  [remote \"origin\"]\n    push = refs/heads/*:refs/heads/*\n    push = refs/tags/*:refs/tags/*\n\n-Peff\n"},{"id":"76330","messageId":"20080507222947.GA6427@sigill.intra.peff.net","threadId":"13421","inReplyTo":"20080507222813.GF5994@sigill.intra.peff.net","subject":"Re: How can I specify multiple refs on one line in the config file?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2008-05-07T22:29:47Z","receivedAt":"2008-05-07T22:29:47Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, May 07, 2008 at 06:28:13PM -0400, Jeff King wrote:\n\n> >     [remote \"origin\"]\n> >     \tpush = refs/heads/* refs/tags/*\n> > \n> > That doesn't work, of course, but I imagine it is possible, and I just\n> > can't figure out the syntax.\n> \n> I imagine it is possible, too, but not with one line. How about:\n> \n>   [remote \"origin\"]\n>     push = refs/heads/*:refs/heads/*\n>     push = refs/tags/*:refs/tags/*\n\nAside: configuring a remote as\n\n  [remote \"origin\"]\n    push = refs/heads/*\n    push = refs/tags/*\n\nseems to hang forever. I didn't expect it to _work_, but probably it\nshould eventually terminate. ;)\n\n-Peff\n"},{"id":"76331","messageId":"18071eea0805071538w1e898ebalf4166b08fe7cfac3@mail.gmail.com","threadId":"13421","inReplyTo":"20080507222751.GC23672@genesis.frugalware.org","subject":"Re: How can I specify multiple refs on one line in the config file?","fromName":"Thomas Adam","fromEmail":"thomas.adam22@gmail.com","sentAt":"2008-05-07T22:38:09Z","receivedAt":"2008-05-07T22:38:09Z","isPatch":false,"sender":{"key":"thomas.adam22@gmail.com","avatar":"https://gravatar.com/avatar/137f9858bc6bfd5b2f743aefd988c81ce0cbd306248889df80e269519cfc8741?d=mp&s=160"},"body":"2008/5/7 Miklos Vajna <vmiklos@frugalware.org>:\n>\n> On Wed, May 07, 2008 at 05:19:30PM -0500, Steve Hoelzer <shoelzer@gmail.com> wrote:\n>  > On Wed, May 7, 2008 at 4:33 PM, Thomas Adam <thomas.adam22@gmail.com> wrote:\n>  > > I might be misunderstanding you, but to push tags, there's:\n>  > >\n>  > > git push --tags\n>  >\n>  > True, but I only want to type \"git push\". No, it's not _really_\n>  > necessary, but I'd like to set it up that way so I don't have to\n>  > depend on my coworkers (new git users) remembering \"--tags\".\n>\n>  are you sure pushing tags by default is a good idea? people regularly\n>  create local tags to mark a commit before a rebase, to mark a commit as\n>  a fix for a given bug, etc. those tags aren't interesting for others.\n>  tags which should be pushed usually rare. then you can use git push\n>  origin tag v1.0, since you know which tag you really want to push.\n\nProbably not, which is why '--tags' exists in the first place.  But\nthen if you're working from a shared repository (which I am -- as are\nmany, no doubt in a corporate environment) it's rather useful.  I\nwould find local tags though to be odd.\n\n-- Thomas Adam\n"},{"id":"76336","messageId":"588192970805071658v7a3efab7g5d1c36afc818985d@mail.gmail.com","threadId":"13421","inReplyTo":"18071eea0805071538w1e898ebalf4166b08fe7cfac3@mail.gmail.com","subject":"Re: How can I specify multiple refs on one line in the config file?","fromName":"Steve Hoelzer","fromEmail":"shoelzer@gmail.com","sentAt":"2008-05-07T23:58:17Z","receivedAt":"2008-05-07T23:58:17Z","isPatch":false,"sender":{"key":"shoelzer@gmail.com","avatar":"https://avatars.githubusercontent.com/u/4623209?v=4"},"body":"On Wed, May 7, 2008 at 5:38 PM, Thomas Adam <thomas.adam22@gmail.com> wrote:\n> 2008/5/7 Miklos Vajna <vmiklos@frugalware.org>:\n>>  are you sure pushing tags by default is a good idea? people regularly\n>>  create local tags to mark a commit before a rebase, to mark a commit as\n>>  a fix for a given bug, etc. those tags aren't interesting for others.\n>>  tags which should be pushed usually rare. then you can use git push\n>>  origin tag v1.0, since you know which tag you really want to push.\n>\n> Probably not, which is why '--tags' exists in the first place.  But\n> then if you're working from a shared repository (which I am -- as are\n> many, no doubt in a corporate environment) it's rather useful.  I\n> would find local tags though to be odd.\n\nThat's exactly my use case and why I asked the question.\n\nHowever, now I'm reconsidering because local tags and branches are a\ngreat feature to show off git. If the default is to push all tags and\nbranches just like a centralized VCS, it becomes an obstacle to\nlearning how git does it -- and I think that the more people learn\nabout git the more they will like it.\n\nSteve\n"},{"id":"76346","messageId":"20080508033245.GA10735@sigill.intra.peff.net","threadId":"13421","inReplyTo":"20080507222947.GA6427@sigill.intra.peff.net","subject":"Re: How can I specify multiple refs on one line in the config file?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2008-05-08T03:32:45Z","receivedAt":"2008-05-08T03:32:45Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, May 07, 2008 at 06:29:47PM -0400, Jeff King wrote:\n\n> Aside: configuring a remote as\n> \n>   [remote \"origin\"]\n>     push = refs/heads/*\n>     push = refs/tags/*\n> \n> seems to hang forever. I didn't expect it to _work_, but probably it\n> should eventually terminate. ;)\n\nNevermind, this _does_ work. But there seems to be a bug in next that I\nwas triggering with my test case. I'll send a separate message about it.\n\n-Peff\n"}]}