The location of git.exe depends on how you installed Git on your computer:
1. If you installed Git for Windows, then the location is usually:
C:\Program Files\Git\bin\git.exe
- or:
C:\Program Files (x86)\Git\bin\git.exe
2. Using the option Git Bash:
C:\Program Files\Git\cmd\git.exe
3. Environment PATH:
where git
This should print out the exact location if Git is in your system's PATH.
Now in PyCharm, go to Settings > Version Control > Git, and add a path to the git.exe.