Question: What is the difference between git branch -d and git branch -D?

  1. -D deletes the local branch, while -d deletes the branch regardless of push and merge status.
  2. -d deletes the current commit head, while -D deletes the entire branch.
  3. -d deletes the local branch, while -D deletes the local branch regardless of push and merge status.
  4. -D deletes the current commit head, while -d deletes the entire branch.

Answer: The correct answer of the above question is Option C:-d deletes the local branch, while -D deletes the local branch regardless of push and merge status.