Reputation: 538
I'm using Django to develop a website and I don't want to commit the database to the git repository. I've already included database.db
to my .gitignore
file, but it doesn't work: whenever I call git status
, this file still appears in the "Changes not staged for commit" list. Is there any special configuration I have to do?
Thanks!
Upvotes: 1
Views: 3788
Reputation: 2804
Your problem is that your file is already tracked in GIT. Try:
git rm --cached [filename]
Upvotes: 5