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.
There is a setting (probably a plugin/hook) that stops you from deleting branches on the server. Check the Hooks page of the repo.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.