After doing
git commit -am '/logs whatever'
I end up with commit message C:/Program Files/Git/logs whatever. How does this happen? I did not succeed in finding any related information by googling things like 'git commit message autocomplete'.
$ git --version
git version 2.20.1.windows.1
$ bash --version
GNU bash, version 4.4.23(1)-release (x86_64-pc-msys)
Additional investigation The path does not have to exist, it's just appended to C:/Program Files/Git, but if it exists, things can be different (notice /usr/, both paths exist):
$ git commit -am '/bin/git.exe something'
[master 22f9915] C:/Program Files/Git/usr/bin/git.exe something