Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Repository test is failed when I clone git repository in Android Studio on Windows

Since Eclipse is out of support I am migrating my Android projects under Android Studio. All my projects reside on Raspberry Pi and I was succeeded with cloning all projects on Linux machine. However I am getting the error under Windows 8.1.

enter image description here Eclipse didn't have any problem to work with the same URL and host is reachable using ssh client. What can be a problem?

like image 672
Singagirl Avatar asked Dec 11 '14 23:12

Singagirl


4 Answers

For anyone who is looking for answer that anything else didn't help:

My problem was due to 2 users in Github in the Keychain so I removed the password of the other user of my Github account and that solved the problem.

Good luck

like image 116
kernix Avatar answered Oct 02 '22 20:10

kernix


You can use smart github from terminal.

Try it out on a public repository:

$ git clone http://github.com/schacon/grack.git For private repos, or to have push access on your repository, you can clone this way:

$ git clone https://[email protected]/username/project.git

like image 42
Arsalan Avatar answered Oct 02 '22 21:10

Arsalan


This is a great example of an error message that is not much help.

Is git.exe available to Android Studio?

In Settings > Version Control > Git there's a Test button to see if git runs properly.

In my case, it wasn't visible (not installed). See http://guides.beanstalkapp.com/version-control/git-on-windows.html for advice on how to install it.

like image 34
Fuhrmanator Avatar answered Oct 02 '22 20:10

Fuhrmanator


This is probably going to come out late, but I installed a new version of android studio and wanted to import from github and ran into the same problem.

My solution was, from the wizard that pops up when android studio is first run, go to Configure > Settings > Version Control > Github and then specify my github account. Then importing from git worked for me.

like image 25
rfblue2 Avatar answered Oct 02 '22 20:10

rfblue2