Code cloud git picture and text use detailed explanation tutorial

Time:2021-1-26

01 on the front

Generally, we submit projects to GitHub, but because GitHub private library costs money, in real project development, we can still choose to save the code on the code cloud. After all, we are afraid that if someone sees the project, it will be bad. At the same time, building private library in code cloud is free of charge, and the operation is very similar to GitHub. First of all, the following steps are based on GIT And these preparations are not mentioned, such as git installation and code cloud account application.

Step 02

A. like GitHub, if we just clone code from above, we don’t need SSH pairing. But we want to submit the project code to it, so we still need SSH key pairing. The operation is the same as GitHub pairing method.

BTo detect SSH, we usually install SSH after Git is installed. We can view it through git, find anywhere, right-click to select git bash here, enter the GIT interface and input SSH. If the situation as shown in the figure appears, it means that SSH has been installed.

《码云git也是不错的之git使用图文详解》

C. import SSH, also find a place at random, enter ssh-keygen-t RSA, and then press enter. Pay attention to the prompt after press enter, such as mine, as shown in the figure

《码云git也是不错的之git使用图文详解》

The first carriage return tells us the address where the key will be saved. Remember to find out where the file is later. Then press carriage return to tell me that the file already exists and ask me if I want to override it. If you have configured it on GitHub before, the situation here should be the same as mine. I will not press it any more. If you don’t want to press carriage return or press it twice again According to the actual situation. Then you can see the file we generated, as shown in the figure:

《码云git也是不错的之git使用图文详解》

This ID_ RSA is the private key. We put it here for our own use, this ID_ rsa.pub It can be opened by Notepad or EDITPLUS.

D. configure the public key to the code cloud. Log in to the code cloud, open the personal center and find the place to configure SSH, as shown in the figure:

《码云git也是不错的之git使用图文详解》

The list on the left has the button of SSH public key, click to enter, and then add ID_ rsa.pub The opened content is directly copied to the public key box. You don’t need to fill in the title. It will be automatically generated after you copy it in. Note that nothing is moved here. It’s just a paste copy. As shown in the picture, because this is my own, for the sake of safety to a conscience code.

《码云git也是不错的之git使用图文详解》

After adding successfully, as shown in the figure.

《码云git也是不错的之git使用图文详解》

FVerify SSH, because sometimes there will be problems without verification, so in order to ensure that we still need to verify, we also need to find a random place, enter and enter SSH – T [email protected] , will prompt you that the code cloud of this link is not sure, ask us if we need the link urgently, we enter yes, and then prompt you welcome, it means that we are successful. As shown in the figure:

《码云git也是不错的之git使用图文详解》

GThere’s nothing to say about building a new warehouse on the code cloud. Choose a private warehouse, as shown in the figure.

《码云git也是不错的之git使用图文详解》

When you enter the warehouse after creation, you can see our general information. The most important thing is to see our link address, as shown in the figure:

《码云git也是不错的之git使用图文详解》

H. submit code. Enter the local code we want to submit, and then open the GIT interface, as shown in the figure

《码云git也是不错的之git使用图文详解》

If you have used git for this project, a. Git hidden file will be generated, as shown in the figure. I have it here, because I have used it. If not, enter git init to initialize and generate this file. When I started to create a project on the code cloud, I chose to generate a lot of files, such as readme and gitignore, so we can’t submit them directly. We have to pull these things first, but we need to connect to the remote warehouse, so we need to connect to the remote warehouse first, and input git remote add origin ×× your code cloud warehouse’s HTTPS or SSH can ×××, I don’t want to see the figure above because I’ve already connected. After connecting, I can update things by typing git pull origin master. I may be asked to enter the account and password of the code cloud. As shown in the figure:

《码云git也是不错的之git使用图文详解》

Then submit everything in Git add. Enter the submission description in “git commit – M”, and then git push origin master. The project is saved here.

So far, this article about code cloud git graphic use detailed tutorial is introduced here. For more related code cloud git usage content, please search previous articles of developer or continue to browse the following related articles. I hope you can support developer more in the future!