I keep on getting the following error message from eclipse when I try to push my android code to my remote Git repository in Bitbucket.
Cannot run program "C:\Users\John\.ssh": CreateProcess error=5, Access is denied
I have already performed a successful push once to the remote repository of my entire android project via:
ssh://[email protected]/myname/myproject.git
I have also exchanged public keys between the android and the Bitbucket account. Both eclipse id_rsa public and private keys are stored under my C:/Users/John/.ssh folder
I have also set the environmental variable GIT_SSH=C:/Users/John/.ssh
Now every time I try to push to the remote repository eclipse complains with this error.
My eclipse is Android Developer Tools running on Windows 8.1.
I appreciate any support from the community.
I found that the path in Android Studio (File-Settings-Version Control->Git->Path to Git) requires not just the path where Git.exe is, but also needs to include the file name git.exe at the end of the path. When I included that this error goes. Hope this helps. You can test it with the Test button next to the path and browse buttons.
Yes absolutely !
This is the faulty one:
C:\Users\Zozo07\AppData\Local\GitHub\PortableGit_d76a6a98c9315931ec4927243517bc09e9b731a0\cmd
C:\Users\Zozo07\AppData\Local\GitHub\PortableGit_d76a6a98c9315931ec4927243517bc09e9b731a0\cmd\git.exe
The \git.exe
at the end has solved my problem !
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With