How do you delete a local branch in Git?
I'm trying to delete a local branch in Git, but I'm unsure of the correct command or process. I know I can use git branch -d or git branch -D, but I'm not sure when to use each or if there are any precautions to take before deleting a branch. Could someone explain the proper way to delete a local branch in Git and the differences between the commands?