Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The old version often failed due to rebase conflicts if the feature branch to delete had multiple commits and was squash-merged into master. This version just checks that the up-to-date master branch matches the feature branch and uses -D to delete the feature branch. This guarantees that we don't lose any work, and avoids bad rebases from squash merges to master.