git.exe error for android studio
Install Git if not already installed.
In android studio click on File -> Settings -> Version control -> Git
Then click to select Path to Git executable
You should find your git.exe file in path: C:\Program Files\Git\cmd\git.exe
For my case git.exe was in the Path C:\Users\Username\ AppData\Local\GitHubDesktop\app-<appversion>\resources\app\git\cmd\git.exe
Go to Settings-->Version Control-->Git and Fix Path to Git executable. Also click test button to check it is working.
get a git path from your pc
go to my computer >open c:drive > Users>YourUser>Appdata>Local>Github>PortableGit_\cmd\git.exe
then copy the file location and past it into your git executable path in android studio as shown in the above image