I have a preexisting repo at C:\MyProject. It has a .git folder but I don’t have a .gitignore. I created one with notepad (which says its a text document), and when I got to do a commit, the .gitignore folder got added to the repo.
How do I fix this?
I am using Windows 7 Pro.
This is most likely because your files are already being tracked,
Take a look at this