Git aliases can be removed with git config --global --unset alias.<badalias>
.
I want to make life easier and be able to delete git aliases with:
git rmalias <badalias>
.
My attempt for this alias is:
git config --global alias.rmalias '!git config --global --unset alias.'
The problem I'm running into here is
error: key does not contain variable name: alias.
since the command now reads
git config --global --unset alias. badalias
.
How can the alias be defined such that it puts the extra parameter on the right place?