#4274 delete acidentally created branch
Closed: Fixed None Opened 13 years ago by jvcelak.

Hi,

I accidentally managed to create remote branch by typing:
{{{
$ git push f14:origin/f14/master
}}}
Instead of:

{{{
$ git push origin f14:f14/master
}}}

But I'm unable to delete it now:
{{{
$ git push origin :origin/f14/master
remote: + refs/heads/origin/f14/master tuned jvcelak DENIED by fallthru
remote: error: hook declined to update refs/heads/origin/f14/master
To ssh://jvcelak@pkgs.fedoraproject.org/tuned
! [remote rejected] origin/f14/master (hook declined)
error: failed to push some refs to 'ssh://jvcelak@pkgs.fedoraproject.org/tuned'
}}}

Please, can you delete it for me? It's tuned component.

(Maybe the hooks are wrong if I'm able to create the branch, but not to delete it.)


[nb@pkgs01 tuned.git]$ git branch -D origin/f14/master
Deleted branch origin/f14/master (was 722c087).

It is designed so that you can not delete branches.

[nb@pkgs01 tuned.git]$ git branch -D origin/f14/master
Deleted branch origin/f14/master (was 722c087).

It is designed so that you can not delete branches.

Login to comment on this ticket.

Metadata