Delete a Local Git Branch

To delete a local Git branch, you can use the following command:

git branch -d branch_name

Replace branch_name with the name of the branch you want to delete. If you want to force the deletion even if the branch has unmerged changes, use the -D flag instead of -d:

git branch -D branch_name