My version 2018.3.4 IDEA, IDEA different versions of operation is almost the same, please refer to start using Gitee plug it below!
Gitee plug-in installation
[File] - [Settings] - [Plugins], and install the plug-in to view gitee
After installation is complete, restart IDEA
Add Gitee Account
[File] - [Settings] - [Version Control] - [Gitee], click [Add account] Add Account
Enter the account number and password, click [Log In]
Account information will be displayed after a successful login
Project Initialization
IDEA Project Share Gitee
Select the items you want to synchronize, click on the menu [VCS] - [Import into Version Control] - [Share Project on Gitee]
Click on the button [Share]
The removal of unnecessary files check mark, click [Add]
Tip success of the project to share Gitee
Login Gitee can see the project
Gitee project to clone IDEA
【VCS】-【Checkout from Version Control】-【Git】
Enter Gitee project URL, click [Clone], start cloning
Click [Yes]
Click [This Window]
Successful cloning, you can see the project code
Gitee teamwork
Pulling Code
【VCS】-【Update Project】
Click [OK]
Tips how many files are updated, you can click [View] to view the updated list of files
Update the file list
Submit code
Note: Submit the code before, you should pull. Code conflicts if pulled, should resolve the conflict before submitting
【VCS】-【Commit】
Choose what code submitted, the default Select, enter commit message, click [Commit and Push]. First Commit or click [], then click from the menu [Push]
Select the default branch, click [Push]
Submitted successfully
Code Violation
When submitting or pull the code, conflict will pop up the following dialog box, select the file conflict, click [Merge]
Three dialog boxes appear, are:
-
Code is left to be submitted to the local border
-
The right side of the box is Gitee code
-
The middle frame is the result of resolving conflicts codes
Code to resolve the conflict: We modified intermediate code, select [Accept Left] or [Accept Right] under the circumstances; or also manually click on conflict revised Code [Apply]
Click [Yes]
When all files to resolve conflict, they can resubmit