Use Git bash with Policy checks

Last updated: September 2, 2025

You can customize Policy checks and use Git Bash by implementing the Git Bash TERM_PROGRAM environment variable. This variable allows Git Bash to work like the native Windows command prompt or Linux terminal.

Without proper configuration, the Git Bash shell on Windows does not display the correct prompts to configure Policy checks.

By default, Liquibase always runs with access to the console for input and output. You can run Policy Checks commands in Git Bash or any other terminal. You can disable user access to the console with the --headless global argument. By default, --headless is set to false.

Procedure

Configure the Git Bash TERM_PROGRAM environment variable

If Policy Checks prompts do not appear in Git Bash as expected, configure the Git Bash TERM_PROGRAM environment variable in the Git Bash terminal.

1

In the CLI, run the TERM_PROGRAM=mintty command

2

Confirm that TERM_PROGRAM is set to mintty

Confirm what TERM_PROGRAM is set to by running the env command to list all environment variables including TERM_PROGRAM.

3

What to do if TERM_PROGRAM is not set to MINTTY

Confirm what TERM_PROGRAM is set to by running the env command to list all environment variables including TERM_PROGRAM.

Use Git Bash with Policy checks - Liquibase