This tutorial is applicable to the code cloud code hosting platform https://gitee.com/First
install Git on the computer (there is a Git tutorial on the beep station) and register a gitee account before reading this tutorial
1. Click SSH public key on the settings page
2. Click How to Generate Public Key
3. Click Public Key Management
4. Click Generate\Add SSH Public Key
5. Open the terminal and enter the command in the red box as shown in the figure and change the mailbox in the blue box to the email address you registered with gitee
6. After the input is completed, press Enter three times to eliminate the need to enter the content
7. At this time, a public key will be generated and stored in (C:\Users\Administrator/.ssh/id_ed25519): This path can be seen after pressing Enter
8. Use Notepad to open the file ending in .pub circled by the red frame. After opening, copy and paste all the content into the red frame area in the figure below
9. Click OK and enter the gitee account password
10. Seeing this page means that the creation of the public key is complete
11. On this page, you can see the public key you just created
12. After the addition is successful, enter the following command in the terminal to test whether it is available
13. Enter yes after the carriage return
14. If Hi XXX! You've successfully authenticated, but Gitee.com does not provide shell access.
the content , it proves that the addition is successful.
Create warehouse upload code
1. Hover the mouse over the plus sign and select a new warehouse first
2. Create a warehouse nickname and click Create
3. Open the project folder and right-click to open it in the terminal
4. Enter two lines of Git global settings in sequence in the terminal
Execute first
git init
to initialize the warehouse
5. Enter git status to view the status of the folder. If the following content is displayed, you need to execute this command
git config --global --add safe.directory "*"