Thread (5 messages) flat view 5 messages, 3 authors, 2016-06-15

Re: error: unlink(.git/refs/remotes/origin/testbranch) failed: was remote does not support deleting refs

From: Dmitry Potapov <hidden>
Date: 2016-06-15 22:44:53

Hi,

[please do not top post]

On Sun, Jul 06, 2008 at 02:20:18AM +0200, Martin wrote:
_
But I get another error:
$ git push origin :testbranch
To ssh://myserver.com/my/path/to/repository
 - [deleted]         testbranch
error: unlink(.git/refs/remotes/origin/testbranch) failed: No such file_
or directory
error: Failed to delete
_
Any idea?
It is harmless. It is just that "git push origin :refs/heads/testbranch"
cannot remove your local reference to that branch because you already have
removed it by running "git branch -d -r origin/testbranch"

Normally you just run "git push origin :refs/heads/testbranch" without
"git branch -d -r origin/testbranch" and then you will not have this error.

Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help