Code cloud (gitee) local project hosting

1. Register and log in to the code cloud platform

Premise statement : This article requires a little foundation, not a nanny-level tutorial, and it does not cover everything, only general steps.

Code cloud official platform link
Picture 1-1

2. Generate and configure SSH public key

If the SSH public key has been generated, go to the local C drive => user => .ssh folder => id_rsa.pub , the pub suffix is ​​the storage file of the public key, which can be opened by Notepad.
Figure 2-1

If there is no .ssh folder, it has not been generated. For the generation scheme, please refer to the official document.
Click to go => SSH public key generation scheme link

3. Add SSH public key

Click the avatar on the upper right, find and click =>Settings=>SSH public key (in the security setting column on the left).
Paste the public key from the previous id_rsa.pub file.
Figure 3-1
Finally, enter ssh -t [email protected] in the terminal to check whether the public key is configured successfully, and return a green successfully to indicate that the ssh public key is configured.
Figure 3-2

4. Create a blank code cloud warehouse

Click the + (plus sign) in the upper right corner of the code cloud platform, choose to create a new warehouse, give the warehouse a name, and click Create for other defaults.
After the creation is complete, click the SSH button and operate according to the official command line tutorial.
Pic 4-1

5. Upload the local project to the blank warehouse corresponding to the code cloud

Run the terminal, navigate to the location of the project to be uploaded, enter the git command, bind the code cloud project and upload it.
(This is the last step. There are also "Git global settings" and "Create local git warehouse" commands that are omitted here, see the official command line introductory tutorial) Refresh the page to view the uploaded code files
Figure 5-1
.
Figure 5-2

After finishing the flowering, please give your thumbs up if you think it is helpful!

Guess you like

Origin blog.csdn.net/qq_41602125/article/details/126491577