When I run commit from a standard command prompt it is opening the configured editor defined by the core.editor configuration value and uses the template defined by commit.template.
However when I run commit from the bash command prompt it is ignoring these settings and opening the VI editor without the template. Why is this?
I am not so worried about the editor but I need to define the commit template.
If those settings are global ones (i.e. defined in “
$HOME/.gitconfig” file rather than in your local repository.git/configfile), that means they are defined in yourHOME.That “home” can differ between the windows session (cmd) and the bash session.
Check the value of
$HOMEin your bash session..gitconfigfile in the directory referenced by your$HOMEenvironment variable.