If you want to check which file would be added before git add . You can see by following command.
1 |
$ git add -n . |
So you can see the .gitignore working or not.
If you already done git add ., then you can reverse by following command.
1 |
$ git rm -r --cached . |