personal code management

Project description:
When using software in the company, people often use GitLab for code management, but GitLab is for personal use, and the operation is relatively complicated and requires a fee. GitHub's code is open again. After searching and trying on the Internet, I found a tool that can be used to save my own code every day. (Cloud effect) Through this tool, we can not only manage our commonly used codes, but also discuss code problems and iterations with our friends.
Link: https://account.aliyun.com/login/login.htm?oauth_callback=https%3A%2F%2Faccount-devops.aliyun.com%2Flogin%3Fnext_url%3Dhttp%3A%2F%2Faccount-devops.aliyun. com%2Flogin%3Fnext_url%3Dhttp%253A%252F%252Fcodeup.aliyun.com%252F64439cdeb0e1dda6507e6ca8%252Fwater_test

use:

  1. Open the link and register an account.
  2. Create a folder locally to store the code of the warehouse.
  3. Download Git to upload code. (Official website download all the way to install by default, right click to appear the icon below)
    insert image description here
  4. Open Git Bash Here in the picture
    and enter:
    git config --list to view configuration information
    Configuration command:
    git config --global user.name "name"
    git config --global user.email "mailbox"

    Enter command: ssh-keygen -t rsa –C “[email protected] to generate a public key (enter all the way)
    Find the file in the picture below in the folder corresponding to the path of your computer,
    insert image description here
    copy the content in the file to the cloud effect and find the location in the picture below Paste
    insert image description here
    and then you can download the content in the warehouse locally.
    Create a new code project in the warehouse and copy the link of the code.
    insert image description here

download:

  1. Use the command: git clone link to download
  2. Put the code in the corresponding folder and use the command git add -A to add the file
  3. Use the command **git commit -m "description"** to add a comment
  4. Submit with the command git push

Other commands:
git pull pulls down the latest code.
You can search for git commands online to learn.

Guess you like

Origin blog.csdn.net/weixin_44248637/article/details/130483128