db.sqlite3 cannot be ignored in git

Viewed 5202

I have add *.sqlite3 to my .gitignore_global file:

When I run git status in my terminal there still have db.sqlite3 listed as modified:

How can I ignore my SQLite file?

2 Answers

I tried this command, and it did ignore changes in db.sqlite3:

git update-index --assume-unchanged db.sqlite3
Related