Check your PATH when you are in the bash session.
echo $PATH
Don't forget that, after updating the PATH as mentioned in your link (through the Environment variable control panel), you need to open a new CMD session and launch git-bash.exe
in order for that session to inherit the modified PATH.
cd c:\path\to\git
git-bash.exe
echo $PATH
The OP confirms in the comment that the PATH is now:
d/Users/h169717/bin:/mingw32/bin:/usr/local/bin:/usr/bin:/bin/:/mingw32/bin:/usr/bin:/d/Users/h169717/bin:/c/Program Files/apache-ant-1.9.6/bin:/c/Program Files/Java/jre1.8.0_72/bin:/c/Program Files/apache-ant-1.9.6/bin:/usr/bin/vendor_perl:/usr/bin/core_perl
And ant
is working.