Learn how to delete a local Git branch using `git branch -d` for safe, merge-checked deletion and `git branch -D` to force-delete unmerged branches. We also cover two common gotchas: you can't delete your currently checked-out branch, and local deletion doesn't touch the remote.
Practice answering this question with AI feedback: https://interviewmentor.app?utm_sourc...