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

How to manage heads on a remote repository?

From
Theodore Ts'o <tytso@mit.edu>
Date
Oct 14, 2007, 10:46 UTC
Message-ID
<E1Ih0zJ-0004FZ-0A@tinytim.thunk.org>

I'm currently exploring the idea of not only making the equivalent of "pu" and "next" available on a public repository for one of my projects, but also the topics/* branches. When thinking about how I might do this, one snag I ran into is that the topics/foo and topics/bar branches are ephemeral, and so when I replicate them to a remote repository, either on kernel.org or repo.or.cz, I would need a way of removing a head for a topic branch that had already been merged.

Creating new topics/foo branch or updating is easy; just do a git push, and they will get created on the remote side. I don't see an easy way of deleting a ref on a remote branch, so any automation at the moment looks like it would require me writing my own script and using something like this:

      ssh remote-host git --git-dir=xxx branch -D topics/foo

... which of course wouldn't work repo.or.cz since it requires shell access.

Am I missing anything?
							- Ted
Next: Michael Witten
Message 1 of 6 in “How to manage heads on a remote repository?”
  1. Theodore Ts'oOct 14, 2007
  2. Michael WittenOct 14, 2007
  3. David SymondsOct 14, 2007
  4. Theodore TsoOct 14, 2007
  5. David SymondsOct 14, 2007
  6. Theodore TsoOct 14, 2007

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.