Get startedGet started for free

Deleting branches

Generally, branches aren't deleted until the contents have been merged back into the main branch (or wherever the live system lives).

However, it's worthwhile knowing how to delete a branch that has not been merged, in case you find the scope of your project changing and a specific branch's contents are no longer required.

This exercise is part of the course

Intermediate Git

View Course

Exercise instructions

  • Forcibly delete the llm-upgrade branch from your repo.

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise