commit -a
Tell the command to automatically stage files that have been modified and deleted, but new files you have not told Git about are not affected.
add -A
Update the index[...] This adds, modifies, and removes index entries to match the working tree.
So commit -a won't track new files, but add -A will.