In an attempt to create a tracking branch I have managed to create a local branch named \'-t\'. I cannot delete the branch because the branch name is also a parameter. This
Use the -- option
--
git branch -D -- -t
As you can read here
a double dash (--) is used in bash built-in commands and many other commands to signify the end of command options
Git won't treat -t as an option anymore, since it comes after the --.
-t