git alias add and commit

C++
git config --global alias.ac '!git add -A && git commit -m'
Source

Also in C++: