Gitee plugin for IDEA tutorial (code cloud)

Author: Spring_ZYL
Feedback: [email protected]
Source: https://www.jianshu.com/u/1b5928185b73
Disclaimer: This article belongs to the author of all, please indicate the source

My IDEA version is 2018.3.4. Different IDEA versions have similar operations. Please refer to the following to start using the Gitee plugin!
Insert picture description here

Install the Gitee plugin

[File]-[Settings]-[Plugins], check the gitee plugin and install
Insert picture description here
it. After the installation is complete, restart IDEA
Insert picture description here

Add a Gitee account

[File]-[Settings]-[Version Control]-[Gitee], click [Add account] to add an account
Insert picture description here
Enter the account number and password, and click [Log In] The
Insert picture description here
account information will be displayed after successful login
Insert picture description here

Project initialization

IDEA project shared to Gitee

Select the project to be synchronized, click the menu [VCS]-[Import into Version Control]-[Share Project on Gitee],
Insert picture description here
click the [Share] button
Insert picture description here


Insert picture description here
Uncheck unnecessary files, click [Add] to prompt the project to be successfully shared to Gitee,
Insert picture description here
log in to Gitee to see the project
Insert picture description here

Gitee project cloned to IDEA

[VCS]-[Checkout from Version Control]-[Git]
Insert picture description here
Enter the URL of the Gitee project, click [Clone] to start cloning
Insert picture description here
Click [Yes] and
Insert picture description here
click [This Window] to
Insert picture description here
clone successfully, you can see the project code
Insert picture description here

Gitee teamwork

Pull code

[VCS]-[Update Project]
Insert picture description here
Click [OK] to
Insert picture description here
indicate how many files to update, you can click [View] to view the updated file list
Insert picture description here
Update file list
Insert picture description here

Submit code

Note: Before submitting the code, you should pull it first. If there is a code conflict when pulling, you should resolve the conflict before submitting

[VCS]-[Commit] You
Insert picture description here
can choose which code to submit, select all by default, enter the submission information, and click [Commit and Push]. Or click [Commit] first, then click [Push] from the menu to
Insert picture description here
select the default branch, click [Push] to
Insert picture description here
submit successfully
Insert picture description here

Code conflict

When submitting or pulling the code, if there is a conflict, the following dialog box will pop up. Select the conflicting file and click [Merge]
Insert picture description here
. Three boxes appear in the dialog box, which are:

  • The left border is the local code to be submitted
  • The right border is the code in Gitee
  • The middle box is the result code after conflict resolution

Resolve code conflicts: we modify the middle code, and can select [Accept Left] or [Accept Right] according to the situation; or manually modify the conflict code and click [Apply] and
Insert picture description here
click [Yes]
Insert picture description here
When all conflict files are resolved, resubmit

Published 14 original articles · Like 39 · Visits 120,000+

Guess you like

Origin blog.csdn.net/gozhuyinglong/article/details/88018053