Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Unable to delete remote branch on stash

Kyle Harrison April 7, 2015

E.g.

$ git push origin test
Total 0 (delta 0), reused 0 (delta 0)
To ssh://git@stash.it.hk.hibm.hsbc:7999/test/felix_test.git
* [new branch] test -> test

$ git branch -d test
Deleted branch test (was 011589d).

$ git push origin :test
remote: error: denying ref deletion for refs/heads/test
To ssh://git@stash.it.hk.hibm.hsbc:7999/test/felix_test.git
! [remote rejected] test (deletion prohibited)
error: failed to push some refs to 'ssh://git@stash.it.hk.hibm.hsbc:7999/test/fe
lix_test.git'

 

I'm using Stash version 2.12.4.

 

1 answer

1 vote
Balázs Szakmáry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 8, 2015

There is a setting (probably a plugin/hook) that stops you from deleting branches on the server. Check the Hooks page of the repo.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events