Why does Git use
git push <remote> :<branch>
as in
git push origin :featureA
to delete the branch featureA
from the remote server?
I am interested in why the colon was used as the delete flag.
It's so different from git branch -d <localbranch>
.
Why don't we do something like
git branch -d --remote origin <branchname>
or is there a deeper meaning behind the colon symbol that I didn't know?