With git commit -m you only commit changes which are added using git add command.
With git commit -am you commit ALL changed including those changes as well which are not added ussing git add
With git commit -m you only commit changes which are added using git add command.
With git commit -am you commit ALL changed including those changes as well which are not added ussing git add