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
Thomas Adam <thomas.adam22@gmail.com>
Date
May 7, 2008, 21:33 UTC
Message-ID
<18071eea0805071433j5bde8868w305d9a80c00bd2bd@mail.gmail.com>
In-Reply-To
<588192970805071415wb7b502ch2047ac5e4865c296@mail.gmail.com>
2008/5/7 Steve Hoelzer <shoelzer@gmail.com>:
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 might be misunderstanding you, but to push tags, there's:
git push --tags
I know that's not inclusive of anything else.
-- Thomas Adam
Previous: Steve HoelzerNext: Steve Hoelzer
Message 2 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.