Tracking SQLite Database Changes in Git
Tracking SQLite Database Changes in Git Git hook for diff sqlite table First, add a diff type called “sqlite3” to your config. The simplest way is to just run these commands:
git config diff.sqlite3.binary true git config diff.sqlite3.textconv "echo .dump | sqlite3" Alternatively, you can add this snippet to your ~/.gitconfig or .git/config in your repository:
[diff "sqlite3"] binary = true textconv = "echo .dump | sqlite3" Next, create a file called .gitattributes if it’s not already present and add this line: