If you want to delete a branch, first checkout to the branch other than the branch to be deleted.
git checkout other_than_branch_to_be_deleted
git checkout other_than_branch_to_be_deleted
Deleting local branch
git branch -D branch_to_be_deleted
git branch -D branch_to_be_deleted
Deleting remote branch
git push origin --delete branch_to_be_deleted
git push origin --delete branch_to_be_deleted
If you want to delete a branch, first checkout to the branch other than the branch to be deleted.
git checkout other_than_branch_to_be_deleted
Deleting local branch
git branch -D branch_to_be_deleted
Deleting remote branch
git push origin --delete branch_to_be_deleted
If you want to delete a branch, first checkout to the branch other than the branch to be deleted.
git checkout other_than_branch_to_be_deleted
Deleting local branch
git branch -D branch_to_be_deleted
Deleting remote branch
git push origin --delete branch_to_be_deleted