Recently I am trying to connect git hub repository to android studio but it shows following the error:
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