{"thread":{"id":"38803","subject":"protect branches against deletion from remote","startedAt":"2015-03-14T18:28:40Z","lastAt":"2015-03-14T18:28:40Z","messageCount":1,"participants":["Henning Moll"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"257683","messageId":"55047DD8.703@gmx.de","threadId":"38803","inReplyTo":null,"subject":"protect branches against deletion from remote","fromName":"Henning Moll","fromEmail":"newsscott@gmx.de","sentAt":"2015-03-14T18:28:40Z","receivedAt":"2015-03-14T18:28:40Z","isPatch":false,"sender":{"key":"newsscott@gmx.de","avatar":null},"body":"Hi,\n\nIf you try to delete a local branch \"feature\" which is not merged into \nanother branch, you will get the following warning:\n\n. error: The branch 'feature' is not fully merged.\n. If you are sure you want to delete it, run 'git branch -D feature'.\n\nIf a local branch is worth to be protected in such a way, why not the \nremote tracking one:\n\n$ git push origin :feature\n\nno warning, just deleted.\n\nWell i can set \"receive.denyDeletes\" on the remote repository, but this \ncompletely removes the ability to delete remote branches.\n\nHow to achieve a similar behavior as with local branches?\n\n(BTW. with \"git push . :feature\" it is also possible to force deletion \nof local, unmerged branches)\n\nBest regards\nHenning\n"}]}