In Git Desktop, the Git executable path is not directly exposed or configurable within the application itself. Git Desktop installs Git in its own installation directory and manages the Git installation internally, making it accessible to Git Desktop and other Git-related operations performed through the application.
Here are the default installation paths for Git Desktop on Windows:
C:\Users\YourUsername\AppData\Local\GitHubDesktop\app-<version>\resources\app\git\
Replace YourUsername with your actual username and with the specific version of Git Desktop installed on your system.
Add the following paths to Path following these steps:
- Search for and open "edit system environment variable".
- Go to Environment Variables.
- In User Variables double-click on "Path"-->"New" and add:
C:\Users\YourUsername\AppData\Local\GitHubDesktop\app-<version>\resources\app\git\cmd
- In system variables, double-click "Path"-->"New" and add:
C:\Users\YourUsername\AppData\Local\GitHubDesktop\app-<version>\resources\app\git\usr\bin\
- In terminal, enter
git --version
to check if it's working.