For intellJ I put it like this:
I have my GIT in this directory:
C:\Users******\AppData\Local\Programs\Git\bin\git.exe