Git -- "How to play with Gitee?

Table of contents

Registration and use of Gitee

Create remote library

IDEA integrates Gitee

Gitee import GitHub project


Registration and use of Gitee

As we all know, the GitHub server is abroad, and GitHub is used as the project hosting website. If the network speed is not good, the user experience will be seriously affected, and there may even be a situation where you cannot log in. In response to this situation, we can also use domestic projects to host the website code cloud.

Code Cloud is a Git-based code hosting service center launched by Open Source China. Its website is: Gitee . It is used in the same way as GitHub, and it is also a Chinese website. If English is not very good, Code Cloud is a good choice. .

Because the gitee code is completely developed by GitHub, there is almost no difference in use, so registration is not mentioned here. If you want to know more about the use of Gitee, please refer to my previous article: How to play Git and GitHub in IDEA?

Create remote library

After creation, it generates its own repository link. The SSH link configuration is consistent with the SSH link configuration in GitHub, but since gitee belongs to China, there is no need to configure SSH . Of course, you can open it if you like it. :

Next, you can use SSH password-free login, is it very simple?

IDEA integrates Gitee

Next, we can push our IDEA local code to Gitee's remote library.

Next, we can modify a little content in the Gitee remote library and then pull it into IDEA.

Cloning is consistent with the operation of GitHub. If you are not familiar with it, you can read my previous article, and I will not repeat it here.

Gitee import GitHub project

Gitee provides the function of directly copying GitHub projects, which is convenient for us to migrate and download projects.

I don't import from URL, I import directly from my GitHub project. From Gitee, I can directly see the remote library project I created in GitHub.

If the code of the GitHub remote library is updated, the project we imported into Gitee is still the previous version. If we want to synchronize with the GitHub project, we need to manually synchronize and update.

Guess you like

Origin blog.csdn.net/qq_53123067/article/details/126676516
Recommended