I use GitHub for Windows. How comes dstc1/dstc_scripts_src/score.csv shows up in the list of files to commit whereas it is present in .gitignore?
Asked
Active
Viewed 29 times
1
Franck Dernoncourt
- 69,497
- 68
- 312
- 474
-
1Have you checked if the .csv file was accidentally committed to the repo? ([ref](http://stackoverflow.com/questions/24897273/github-for-windows-ignoring-gitignore-file)) – Dan Apr 14 '15 at 02:23
-
@Dan Thanks, that was the issue. I wasn't aware that the file would be listed in the to-be-committed file list in that case. – Franck Dernoncourt Apr 14 '15 at 02:28
-
1Indeed! I'll post that as an answer then. – Dan Apr 14 '15 at 02:36
1 Answers
1
Looks like the .csv was accidentally committed to the repo, so it showed up despite the .gitignore rules.
If a file is in the repo then it will show up regardless of what .gitignore says about it -- it's a behavior listed in the docs, you can check out the Notes section as well for a few details.
Here's a similar issue with steps on how to get out of it.