I save typing by using a git alias to shorten this:
git add -A && git commit -m to this:
git z. Beautiful. It’s easy. Just create a custom alias like so:
git config --global alias.z '!git add -A && git commit -m'. That’s it. Now I have a single and ultra-short command to add all untracked files, remove previously tracked but deleted files and commit with the following message.
So my commits look like this:
git z “added user model”. I’ve considered creating another shorcut to push the current branch to origin.