1

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?

enter image description here

Franck Dernoncourt
  • 77,520
  • 72
  • 342
  • 501
  • 1
    Have 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
  • 1
    Indeed! I'll post that as an answer then. – Dan Apr 14 '15 at 02:36

1 Answers1

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.

Community
  • 1
  • 1
Dan
  • 611
  • 4
  • 9