When using git add --all, .gitignore does not get added to staging. So then I try to manually add .gitignore like this
$ git add .gitignore
The following paths are ignored by one of your .gitignore files:
.gitignore
Use -f if you really want to add them.
So I have to use -f to force add .gitignore which is annoying