DEV Community

Discussion on: a nasty git alias hack

Collapse
 
daniel13rady profile image
Daniel Brady • Edited

πŸ˜† πŸ‘ Good manager you've got there, Clive. I don't think mine has ever even seen my commit messages, let alone cares about them.

But I think Maurits' point was more that if you don't include a default commit message in the alias, you can save yourself some typing (by shortening git commit -m to gc) while still requiring a message from yourself on the command line.

I started using Zsh as a default shell instead of Bash a few years ago (no real reason besides curiosity) along with the Oh My Zsh framework, and that framework adds a metric shit-ton of git aliases along those lines.

I don't use them these days as I prefer interacting with git directly from my editor, but I tried them out in the beginning and they were fun to use for awhile.

Thread Thread
 
osde8info profile image
Clive Da

yes your right he is NOT actually recommending the same text for every commit if you read carefully sorry my mistake

Thread Thread
 
osde8info profile image
Clive Da

and i certainly hope your mgr isnt reading DEVTO ! :)