Here are the git commands which I have typed
$ git add -u -n
add 'proj1/Foo.scala'
$ git add .
$ git add .
$ git commit -m "message"
On branch feature/branch
Your branch is up-to-date with 'origin/feature/branch'.
Changes not staged for commit:
modified: ../proj1/Foo.scala
So why did I get the Changes not staged for commit
? as you can see that I did git add .
twice
Now if I got ahead and do
git add ../proj1/Foo.scala
and then do commit it works. Why should I do each file specifically rather than just do git add .