git is not working in QT creator terminal with bash
-
C:_data\projects\test>bash -c "git describe --tags --abbrev=8 --dirty --always --match """
/bin/bash: line 1: git: command not foundC:_data\projects\test>git --version
git version 2.41.0.windows.3 -
C:_data\projects\test>bash -c "git describe --tags --abbrev=8 --dirty --always --match """
/bin/bash: line 1: git: command not foundC:_data\projects\test>git --version
git version 2.41.0.windows.3@srinath_ramamoorthy
I would test what yourPATH
is in thebash -c ...
command. Since it's "git: command not found" I imaginegit
is not on thePATH
.Also in the second case we cannot tell from what shown that you are definitely inside
bash
. It juts looks like a Windows prompt and command, nothing to do withbash
. -
C:_data\projects\test>bash -c "git describe --tags --abbrev=8 --dirty --always --match """
/bin/bash: line 1: git: command not foundC:_data\projects\test>git --version
git version 2.41.0.windows.3@srinath_ramamoorthy
try to use the full path
bash -c "/usr/bin/git describe --tags --abbrev=8 --dirty --always --match """