Before
Redundancy included
Sure—to delete the local Git branch named demo, run this
command:
git branch -d demo
The -d flag protects unmerged work. If Git refuses, you can
use -D, but only when you intentionally accept losing those
commits.