I read in tutorial that you can use git commit -a -m "comment"
as a short hand to
$ git add .
$ git commit -m "comment"
when I trying to run this command I am facing following issue
Ashishs-MacBook-Pro:ourfirstrepo atyagi$ git commit -a -m "adding second file"
On branch work
Untracked files:
(use "git add <file>..." to include in what will be committed)
sample2.txt
nothing added to commit but untracked files present (use "git add" to track)
could some one please explain why git commit -a -m is not working