Novice github user manual

The first step, of course, is to register an account and then log in, Balabala, let’s not talk about it.

The second step is to create a new repository on github. There is a "+" sign in front of the avatar in the upper right corner. Click on the first new repository to create a new repository. Click on it.

Filling in the warehouse name and description is to write a description for the project for easy viewing. There is another difference between public and private. The public is free, but everyone can see it. The code of the general company cannot be placed on it. I can see it myself, but others can't. It should be like this. I have never driven it. . .

The third step is to clone to your local computer, this is the big trick.


There are two ways to clone and submit code in the future. Both https and ssh can be used normally. The difference is that https requires an account number and password every time. After ssh is configured, you don't need to enter an account number and password. Let's talk about what kind of ghost this ssh is. A ssh computer generally has only one private key and one public key. These two ghosts are id_rsa and id_rsa.pub, which are usually hidden files in the ~/.ssh/ folder. , copy the content in id_rsa.pub, click on the avatar in github-->settings-->SSH and GPG keys --->new ssh key, fill in the title as you like, you can understand it by yourself, paste the copy in the key Everything in id_rsa.pub is generally successful at this time. Of course, what should I do if the configuration fails when the public key is configured correctly? I encountered this strange problem. After a day of tossing, I finally restarted it. The computer is ok.


It is purely personal study notes. If you have any other comments or suggestions, please leave a message in the comment area, thank you !

I hope my experience of entering the pit is helpful to you, may the Holy Light be with you

Guess you like

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