1. Registered gitee

Search “Gitee” on Baidu, register, and choose a name that is easy to remember/sound/meaningful to you, because it will be used as a domain name. When registering, the website also has the relevant prompt text, (after registration, has not found the relevant place to change the name). Remember your registration password. You’ll need it later.

2. The difference between Gitee and Github

Both are for code management, making it easy to clone, modify, commit code, have a change record, and so on. The difference is that Gitee is domestic and Github is foreign. Use the git command is the same, recommend a great git self-study www.liaoxuefeng.com/wiki/896043…

3. Create the warehouse for the first time

After successful registration, click +

1. -> Create a new warehouse

2.-> Repository name: for example, css-test

3. -> warehouse introduction: CSS style practice

4. -> Open source/Private: Choose one, such as private

5. -> Initialize the repository -> select the language, the last two default good

6. -> Set template: Select the Readme file

7. -> Select branch model: default is fine

8. – > create

This creates a repository called CSS-test. Click the warehouse on the homepage of the website, you can see all the warehouses under your name.

4. Clone the code to the local PC, modify the code, and submit it

1. Go to the repository to be cloned -> Clone -> Copy path.

2. Create a folder locally, where to put the cloned code.

3. Run git Clone directory on the terminal

4. Create two new HTML and submit the code

  • git add 111.html
  • git add grail-layout-float-padding-margin.html
  • Git commit -m “Simple comments for this commit”
  • git push

If the code is modified by multiple people, you need to create a bug branch under the master branch. For example:

  • Git Add modifies files
  • Git commit -m “bug-001: Comment content”
  • Git push personal name bug-001 / Git push-f personal name bug-001

This understanding is good, self practice management part, temporary use.

This is the first time to use Gitee. If there is any mistake, please correct, discuss, improve and learn