Use Git bash with Policy checks
*Last updated: July 18, 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.
In the CLI, run the TERM_PROGRAM=mintty command
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
.
What to do if TERM_PROGRAM is not set to MINTTY
If TERM_PROGRAM
is not set to MINTTY
, you can run export TERM_PROGRAM=MINTTY
. This export resets the value to MINTTY
for the active Git Bash terminal.
To set TERM_PROGRAM
permanently on startup, review your OS documentation on editing configuration files, for example .bashrc
or .bash_profile
.