Saturday, September 25, 2021

alias for git commands

To combine add and commit it is easy to create an alias:
git config --global alias.ac "commit am"

now in command line instead of running
git commit -am "this is my commit"

you can run
git ac "this is my commit"