?? Recently when using Git to find a very strange problem, I use the cmd command line can be clone,push,pull and other operations can be a perfect success, but in the Android studio to do these and remote library operations, is a variety of failures ....
?? At first I thought it was ssh key problem, so I retried several times to generate SSH key, and then re-do the above operation, found still not ...
?? Later I thought of the git configuration in the Android studio is a problem, then went online search, found that the original is really a git configuration problem, originally in Git there are two places Git.exe execution files, one in the Bin folder , One in the cmd folder . In Andriod Studio, it is possible to configure the test, but the difference is that the git.exe under CMD can be executed anywhere ... And at first I was using the bin below, so that caused the command to fail to execute the error!
A true configuration:
1. Configure the Git.exe under the cmd folder:
2. Test whether the configuration is successful:
3. Test whether remote operations such as clone can be performed:
4. Select the library you want to clone and make a clone test:
5. A successful result indicates that the clone operation can be performed:
The clone operation can be executed successfully, and the rest of the Push,pull related operations can be executed successfully.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Unable to clone cause analysis using Git feature in Android studio