I am using git and most of the time we use this command to add files in our repository. git add .
and after that we write a commit message like this git commit -m "add file info.js"
. But I came across with this command git commit -am "message"
. If I have not created a new file this will stage the commit and send the commit with a message.
But If I create a new file like file.js
the command does push the latest code on my repository but not the new file. I wonder why. Can somebody please explain me.