Skip to main content

Gitignore for Goose

If you work in a Git repository, you may want to configure your Gitignore to disable tracking files created by Goose. These potentially include the Goose database, write ahead log, temporary files.

Sample Gitignore Files

In the following, we present sample Gitignore configuration snippets for Goose.

Ignore Temporary Files but Keep Database

This configuration is useful if you would like to keep the database file in the version control system:

*.wal
*.tmp/

Ignore Database and Temporary Files

If you would like to ignore both the database and the temporary files, extend the Gitignore file to include the database file. The exact Gitignore configuration to achieve this depends on the extension you use for your Goose databases (.goose, .db, .ddb, etc.). For example, if your Goose files use the .goose extension, add the following lines to your .gitignore file:

*.goose*
*.wal
*.tmp/