kylebakerio / mindseal

next-gen cross-platform open-source buzzword-happy SRS
http://mindseal.kylebaker.io
2 stars 1 forks source link

Solved: git status still shows files added to gitignore (they were committed once accidentally) #154

Open mishasaggi opened 8 years ago

mishasaggi commented 8 years ago

I remember there being a problem on your system for mindseal where a file once committed to github but later added to gitignore still kept showing up in git status. I ran into something similar. Here's the solution if you still need it:

The file needs to be removed from local repo (but not the file system itself) and from remote repo. git rm --cached MyFile git rm --cached -r MyDirectory

on running the above commands you should see an output like: rm 'MyFile'

...which reminds me you use rm sometimes for staging a file that was physically deleted. Interesting.