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

remote does not support deleting refs

From
MMartin <html-kurs@gmx.de>
Date
Jul 5, 2008, 21:22 UTC
Message-ID
<486FE602.3060301@gmx.de>
Hi,
I tried to setup a central git repository. Access is via ssh.
How do I delete a remote branch? If I try it using
 > git branch -d -r origin/testbranch
 > git push origin :refs/heads/testbranch
I get the error
To ssh://myserver.com/my/path/to/repository
  ! [rejected]        testbranch (remote does not support deleting refs)
error: failed to push some refs to 
'ssh://myserver.com/my/path/to/repository'
So how do I setup my remote repository to allow deleting remote branches?

Thanks, Martin

Next: Martin
Message 1 of 6 in “remote does not support deleting refs”
  1. MartinJul 5, 2008
  2. error: unlink(.git/refs/remotes/origin/testbranch) failed: was remote does not support deleting refsMartin, Jul 6, 2008
  3. Dmitry PotapovJul 6, 2008
  4. Jeff KingJul 8, 2008
  5. Junio C HamanoJul 8, 2008
  6. Dmitry PotapovJul 6, 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.