Based on a recent question on stackoverflow I found the power of git aliases and want so share one I invented for answering the question and after that I found very useful in everyday git use:
git config --global alias.add-commit '!git add -A && git commit'
After this, you can simply check in all new, modified, and deleted files with a simple
git add-commit -m 'My commit message'
I have aliased this command also to git ac
in order to save further on typing. I never thought that this combination could be that useful, but actually I think it really is. Thanks to the questioner for bringing the idea up.
Take a look at my gitconfig (and related files), there may be more stuff for you in there: https://github.com/cypher/dotfiles/blob/master/gitconfig
Also, if you’ve got a script called `git-foo’ somewhere in your path, you can just say “git foo”, and git will call that script for you.