git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: How can I specify multiple refs on one line in the config file?

From
Jeff King <peff@peff.net>
Date
May 7, 2008, 22:29 UTC
Message-ID
<20080507222947.GA6427@sigill.intra.peff.net>
In-Reply-To
<20080507222813.GF5994@sigill.intra.peff.net>
On Wed, May 07, 2008 at 06:28:13PM -0400, Jeff King wrote:
Show 11 quoted lines
> >     [remote "origin"]
> >     	push = refs/heads/* refs/tags/*
> > 
> > That doesn't work, of course, but I imagine it is possible, and I just
> > can't figure out the syntax.
> 
> I imagine it is possible, too, but not with one line. How about:
> 
>   [remote "origin"]
>     push = refs/heads/*:refs/heads/*
>     push = refs/tags/*:refs/tags/*
Aside: configuring a remote as
  [remote "origin"]
    push = refs/heads/*
    push = refs/tags/*

seems to hang forever. I didn't expect it to _work_, but probably it should eventually terminate. ;)

-Peff
Previous: Jeff KingNext: Jeff King
Message 8 of 9 in “How can I specify multiple refs on one line in the config file?”
  1. Steve HoelzerMay 7, 2008
  2. Thomas AdamMay 7, 2008
  3. Steve HoelzerMay 7, 2008
  4. Miklos VajnaMay 7, 2008
  5. Thomas AdamMay 7, 2008
  6. Steve HoelzerMay 7, 2008
  7. Jeff KingMay 7, 2008
  8. Jeff KingMay 7, 2008
  9. Jeff KingMay 8, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.