First checkout another branch git checkout <other branch> Now delete branch git branch -D <deleting brach>