Combine git add and git commit into one command

Posted 2 years ago

Git add and commit in one command

git config --global alias.a '!git add -A && git commit -m' // Run this first, once

git a 'Your commit message'

The above command combines git add and git commit, so you can now run the command git a ‘Your commit message’