Adriano Valente
Adriano Valente

Reputation: 538

Ignoring database files at git commits

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

Answers (1)

aldux
aldux

Reputation: 2804

Your problem is that your file is already tracked in GIT. Try:

git rm --cached [filename]

Upvotes: 5

Related Questions