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:28 UTC
Message-ID
<20080507222813.GF5994@sigill.intra.peff.net>
In-Reply-To
<588192970805071415wb7b502ch2047ac5e4865c296@mail.gmail.com>
On Wed, May 07, 2008 at 04:15:47PM -0500, Steve Hoelzer wrote:
Show 9 quoted lines
> How can I specify multiple refs on one line in the config file? For
> example, I want "git push" to push all heads and all tags by default
> so I tried this:
> 
>     [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/*
-Peff
Previous: Steve HoelzerNext: Jeff King
Message 7 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.