Skip to content
CodeKruPro

git branch -d refuses to delete a branch

QuizEasy-Medium

git branch -d feature/old fails with "the branch 'feature/old' is not fully merged". What does it mean?

  • The branch has commits that are not in your current branch; -d refuses so you do not lose them, and -D would force the delete
  • The branch is checked out on the remote
  • Branch names with a slash cannot be deleted
  • You must push the branch before deleting it

This question is part of Pro+

Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.

See Pro+

Already have Pro+? Sign in