“This is my 19th day of the November Gwen Challenge.The final text challenge in 2021”.

I. Code cloud login

Visit code cloud address: gitee.com/, complete the account registration, registered can directly log in

2. Create a warehouse

Click the + sign in the upper right corner to create a new repository

Fill in the warehouse information

Fill in the name of the warehouse and other information

Confirm the information and click Create.

4. The creation is complete

This completes the creation of the repository

5. Set SSH personal public keys

To avoid the hassle of entering a password for each HTTP operation, you can configure the SSH secret key

  • Install it locallygit
  • Enter thegit Bash

  • Generate it using the following commandsshkey
ssh-keygen -t rsa -C "[email protected]"
Copy the code

Note: [email protected] here is only the name of the generated sshkey and does not constrain or require a specific mailbox to be named. Most of the tutorials on the web now explain the use of mailbox generation, the original intention of the first is just to facilitate identification so the use of mailbox.

Press Enter three times as prompted to generate an SSH key.

If it has been generated before, be careful not to overwrite the existing one, otherwise the existing connection will fail

If you’ve created one before, you can just use the existing SSH key

  • See the SSH key
cat ~/.ssh/id_rsa.pub
Copy the code

Add the copy key to the repository

Click OK, this is our connection created

  • Verify that it was successfully established.

Enter in git bash terminal

ssh -T [email protected]
Copy the code

If the preceding page is displayed, the IP address is successfully added

Seven, pull code, test

  • Click mine to go to the one you just createdtestwarehouse

  • Click Clone/Download and selectSSHLink way
  • Create one for the local desktoptestfolder
  • Right click to entergit bash(Be sure to close the previous one firstgit bash)
  • Type the following command to complete the code pull
git clone [email protected]:cao_shen_yang/test.git
Copy the code

The code pulled successfully

This shows that the file was successfully pulled to the warehouse

  • A change onREADME.mdThe contents of the

  • submit
git add .
git commit -m"xxxxxxxx"
git push origin master
Copy the code

The remote repository was submitted successfully

  • Let’s see if the code changes in the code cloud

You can see what we just committed and the commit record information.