There's another issue with .gitignore
that might happen, especially for a Windows user. Git does not like it when you name .gitignore
(such as unity.gitignore
).
You'll want to always name it .gitignore
, or on Windows, .gitignore.
as Windows thinks you are trying to rename it without a filename.