This entry is also available in my blog: Web Warrior Toolbox
I like using git commands but I don't like typing the same sequence of commands over and over. I found that instead of typing
git add . git commit I can make an alias using
git config --global alias.ac '!git add . && git commit' Now, instead of typing both commands, I can simply run:
git ac -m "fix: update controller" This is equivalent to:
git add . git commit -m "fix: update controller" If I run git ac without -m, Git will open the configured editor so I can write the commit message.
A small alias that can accelerate a repetitive sequence. Always be learning, dev-san 🚀
