What is the difference between the options -D and -d when deleting branches in Git?

In the Lesson on Git, at some point, the delete option -D was used to delete a branch. For example, git branch -D branch-name.

While at other times, the delete option -d was also used to delete a branch. For example, git branch -d branch-name.

What is difference between the uppercase -D option and the lowercase -d option and when should either of them be used?

have you tried:

git branch --help

many command line programs with with man(ual) and help pages, for git branch:

2 Likes