I often forgot that I have some new files and directly do,
git commit -a -m "My commit message"
This only commits changed files, and I have to do add the remaining files in a new commit. This means that there are two separate commits although logically they are part of the same task.
The easiest way I know to include untracked files in the commit via two consecutive commands:
git add -A
git commit -a -m "My commit message"
Is it possible to have the same effect like the above in one command?