Load a project in GitHub in AndroidStudio

Before, people have been asking how to check the code in GitHub directly in AS. Just this time, the computer at home has redeployed the development environment, so I will take a few pictures and record it in case someone asks
me AS version is 3.0, different. The version should be about the same

The first step, VCS->Checkout from Version Control->GitHub

write picture description here

If you do not have Git installed on your machine, a dialog box will pop up, as follows:
write picture description here

This requires us to install Git. Since a few colleagues are still using Svn and don't know much about Git, I will briefly introduce the installation of Git, but I still recommend that you learn a little bit about Git, at least remember Live in those few lines of commonly used commands, because you may also use them later when submitting code.

First download Git, remember to choose the right version, here is the Windows one.

Download address: https://git-scm.com/download/win
The installation process can be clicked all the way down. Although the interface is in English, it is very simple. You can also choose according to your own needs.

Then get id_rsa.pub (below), if it exists, you can skip this step

write picture description here

After entering the command, press Enter three times in a row, you know, I am a bit lazy and I will definitely sneer at the password.

write picture description here

Open the folder in the figure below, the path only represents this, open the id_rsa.pub file, copy it for use

write picture description here

Log in to your GitHub, select Settings in the drop-down position of the avatar

write picture description here

Then click New SSH Key on the interface

write picture description here

Add Key, fill in the title casually, it is a logo, and the key is the string you just copied

write picture description here

If you are a newly installed Git, restart AS, if you have Git before, then the above paragraph will be read in vain, huh! ! !

The second step, fill in the GitHub account password, enter the following interface, log inwrite picture description here

The third step, fill in the URL you want to check to load the project

write picture description here

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326912650&siteId=291194637