Rename them into something _not_ under refs/heads:
git update-ref refs/hidden/branch branch
git branch -D branch
?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html