Windows is really different, and everything is a little more troublesome (of course.) It's for programmers. )
In the beginning, I want to use git in the Cygwin, it saves me to install a set of software, configuration can be unified, but it turns out not
When you configure git as version Cygwin in Android Studio, the point test runs the report version number correctly, but fails directly in clone, regardless of whether SSH is selected builtin or native.
Well, after you install Msys git, you still have to configure the SSH to toss. It has two kinds of matching methods, but the essential method is the same, that is, setting the environment variable GIT_SSH to the path of the corresponding SSH program.
First, I tried to use the OpenSSH way, that is, gitbash, but that ssh, do not know where to read the private key, I put my id_rsa to all kinds of so-called home/.ssh can not
So, had to install a tortoisegit, will Git_ SSH to the inside of the TortoiseGitPlink.exe, according to reason that the goods themselves should know to start an agent to load the private key, but no, it threw a wrong to say can not find the authentication method available, the server side clearly sent back there is a public key mode, indicating that it itself can not find the private key.
Then, manually start the pageant, manually put the private key in (also the start of the OpenSSH format of the Id_rsa into the Putty format PPK), finally succeeded, in Gitbash and androidstudio this can be normal clone!
Finally, why do you have to put git in a androidstudio? Just pull it down in the Cygwin, when the local project opens, right?
-So you can't take advantage of the perfect version Control Panel in Androidstudio! It is really easy to use and integrates with the code, which is quite handy.
Again faithful command line powder, should also remember, the preferred command line, just to understand the intrinsic mechanism, but if there is more suitable for the professional precision of the IDE tools, it does not have to repel, in order to be pragmatic is to improve ergonomics, should actively embrace all the available things.
Android Studio set GIT/SSH on Windows