GIT use ----- github related understanding

In the past few years, projects have been using SVN. I used to know about git commands and how to use them. Recently, I plan to use them specifically to use them in new projects.

1. Create a github account

       Visit https://github.com to register an account

2. Create a repository



 

 3. Fetch the code from the remote library

       1. First, you need to have an SSH KEY associated with github, execute ssh-keygen -t rsa -C '[email protected]', xxx is your own mailbox, and then check whether there is id_rsa in the .ssh directory of the system user directory ( private key) and id_rsa.pub (public key) two files.

      2. Import the public key to the remote repository, as shown below:



 Once added, you should be able to download the files in the github repository.

       3. Get the github file

            The git tool has been installed locally just now, so execute git clone [email protected]:beaver777/beaver.git in the tool, and you can also use the https download address.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326361466&siteId=291194637