
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 🚀
About the author
- Markdown + Vim fan. Love sharing knowledge with the community Dev-san, gambare! ᕙ( •̀ ᗜ •́ )👍
Comments
Join the discussionNo comments yet. Be the first to comment.





