if I saw this sort of stuff in my codebase...
Your codebase should be optimized for reading. Your aliases file should be optimized for very, very frequent typing.
These are different goals, so naturally the solutions look different.
Your codebase should be optimized for reading. Your aliases file should be optimized for very, very frequent typing.
These are different goals, so naturally the solutions look different.
Yes, that's why we are not discussing the creation of easily typed aliases for "rm -rf". That would be bad.
Instead we are discussing aliases for a bunch of fairly innocent Git commands, most of which are reversible in case of catastrophic accident.
I admit that I do have a four-character abbreviation for "git reset --hard". Maybe that will burn me one day, though I rarely pile up so many uncommitted changes that I have much at risk. Or maybe I'll make that shortcut a little longer.