git has it's own alias system. For example, I set alias co = checkout, and the best part is that bash completion understands this automatically, and suggests valid targets for checkout. Bash-level aliases won't do that.
I just set up rules. Also I don't let the AI write a commit message either because if I haven't sufficiently understood the changes enough to write the commit message I probably shouldn't commit it.
View all comments
Show parent comment
7
u/Steinrikur 12h ago
My gitconfig is full of aliases for this kind of stuff, pusho for pushing a new branch to origin, deletebranch to delete it locally and remote, etc.
AI can write a commit message, but I'll be the one to push it.