Process Flow - Deleting branches
Start
Check branch exists?
No→Error: branch not found
Yes
Check if branch is current branch?
Yes→Error: cannot delete current branch
No
Delete branch command
Branch deleted
End
This flow shows the steps git follows when deleting a branch: it checks if the branch exists, ensures it's not the current branch, then deletes it.