first para of man gitignore should refer to 'git rm --cached'
- From
Sitaram Chamarty <sitaramc@gmail.com>
- Date
- Nov 7, 2010, 18:37 UTC
- Message-ID
- <AANLkTim=QCcJDb0600Je-jePvXSXfFMe7FAQ0WMhZKn7@mail.gmail.com>
It's an FAQ that "why doesn't my gitignore work" when the files in question had already been added earlier, usually in error. The most common remedy, I believe, is "git rm --cached" followed by a commit.
"update-index" does not seem to be the right answer.
Thoughts?
-- Sitaram