I find it confusing to that in git, to remove a remote you use ‘remote rm‘…
git remote rm myremote
…while the syntax for deleting a branch requires the -d (or -D) switch:
git branch -d mybranch
Is there a logical reason for this inconsistency (which could perhaps assist me in remembering it correctly)?
Because the syntax to create a branch is just
git branch mybranch, notgit branch add mybranch.What if you had a branch called
rm?