I have an eclipse jpa project with some tests that use a dummy h2 database to verify the correct loading of data. No new data is presisted to the dummy db
Every time I run the tests the db is considered modified by GIT. How can I avoid the unnecessary checking in of new versions of the database; it’s my understanding that a binary file will just get completely replaced, unnecessarily inflating my repo.
Use
git update-index --assume-unchangedon the db file after you checkout your working copy / branch. You can also try usinggit update-index --skip-worktree