Download and install Git, use IDEA to connect to the Gitee repository and disconnect from the Gitee repository [Super detailed]

Installation of Git, using IDEA to connect to the Gitee repository and disconnect from the Gitee repository [Super detailed]

Are you still worried about how to use Gitee repository?
Don’t know how to use IDEA to connect to your own Gitee repository?
When you try to connect to Git, you find that the connection is wrong and you don’t know how to disconnect IDEA from Git?
Congratulations, you have found a tutorial to quickly connect to Gitee! (Let’s learn one by one below!)

1. Git installation

1. Go to Git’s official website: https://git-scm.com/

Git official website

2. Click Download

Download Git

3. Select the corresponding download version

Insert image description here

4. After downloading, click Install

Insert image description here

5. Install (follow the steps below)

Insert image description here
Insert image description here

Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here

Git is now installed!

2. Use Idea to connect to your own created warehouse in Gitee

gitee official website: https://gitee.com/explore
Insert image description here

Insert image description here

Remember this address (it will be useful later)! ! !

It begins now, everyone! ! !

1. Find Create Git Repository under VCS and click OK

Insert image description here
Insert image description here

In this way, the .git folder is created (this folder may be hidden on the computer. Here is a tutorial on how to display this folder)

2. Click Commit under Git

Insert image description here

3. Start preparing to connect to the Gitee repository

Insert image description here
Insert image description here
Insert image description here

4. Copy the address of the Gitee warehouse you created

Insert image description here

5. Upload your project to the Gitee repository

Insert image description here
Insert image description here

Sign of success!

6. Don’t rush to be happy, go and have a look in your own warehouse!

Insert image description here

Congratulations on successfully uploading your project to your Gitee repository!

3. Disconnect the project in IDEA from Gitee

1. Click Settings under File

Insert image description here

2. Find Directory Mappings under Version Control, unbind the interface bound to Gitee and apply it.

Insert image description here

3. Open the location of the project in the file and set visible and hidden folders.

Insert image description here

4. Delete the .git folder (be careful not to delete the wrong one!!!)

Insert image description here

This completes the connection between the project in IDEA and Gitee.

If you want to know how to directly use Git to upload local projects to Gitee repository (without using the tools that come with IDEA), you can refer to my other tutorial:

Uploading local projects to Gitee repository

After reading the tutorial, I believe everyone will learn how to use IDEA The projects in are uploaded to the Gitee repository. If you have any questions, please leave a message in the comment area.

Guess you like

Origin blog.csdn.net/qq_63055262/article/details/124234214