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 ha
You can define an alias to add all before commit. Just put this lines into your ~/.gitconfig file :
[alias] ca = !sh -c 'git add -A && git commit -m \"$1\"' -
Then use your alias like this :
$ git ca 'Your commit message'