DEV Community

Discussion on: Improve Your Git Productivity with Bash

Collapse
rahul0705 profile image
Rahul Mohandas

Seems to me your looking for git commit -am <message> but I caution, the reason most of these commands are separate is because you should be aware of what your commiting, all to often junior engineers use got as a remote backup of their hard drive and while there is some more truth to that; users should be aware of what they are adding and WHY (that's the point of the message).

Collapse
santaxxl profile image
Dominik Mańkowski • Edited on

git commit -am <msg> is different from git add . && git commit -m <msg>. The former does not add newly created files to the index.