git add and commit in one command April 12, 2017 CodeSleepShred You can combine git add & commit together into one command to save time. The command below defines a git alias. Create Global Alias git config --global alias.add-commit '!git add -A && git commit' Example git add-commit -m 'init' Share on FacebookShare on TwitterShare on Linkedin