Graphical operation of GitHub in idea

Time:2021-9-20

1、 Local warehouse initialization and remote warehouse push operation

Idea basic environment configuration

GitHub configuration
Graphical operation of GitHub in idea

Git execution file directory assignment
Graphical operation of GitHub in idea

Create project git02
Graphical operation of GitHub in idea

Create a local warehouse and submit project files to the local warehouse
Graphical operation of GitHub in idea

Create a local warehouse in the directory where the current project is located
Graphical operation of GitHub in idea

Local submission success status
After the local warehouse is created successfully, the effect is as follows
The following icon will appear in the upper right corner of the current project
Graphical operation of GitHub in idea

In the lower right corner of the toolbar, you can see that the current project status is on the trunk
Graphical operation of GitHub in idea

Execute the project submission operation, submit the project file locally and push it to the GitHub remote warehouse (note that comments must be added when submitting the file, otherwise the submission fails!) and currently submit it locally
Graphical operation of GitHub in idea

Push local warehouse files to remote warehouse

Create remote warehouse github02

Graphical operation of GitHub in idea

Execute remote push operation under idea
Graphical operation of GitHub in idea

Bind remote warehouse address
Graphical operation of GitHub in idea
Graphical operation of GitHub in idea

Push local warehouse file to remote warehouse
Graphical operation of GitHub in idea

After the push is successful, a push success message prompt appears in the toolbar at the lower left corner of the idea
Graphical operation of GitHub in idea

Terminal viewing user operation history
Graphical operation of GitHub in idea

2、 Git branch operation in idea environment

Mode 1
Graphical operation of GitHub in idea

Mode 2
You can create and switch branches in the lower right corner of the idea toolbar
Graphical operation of GitHub in idea

gitgithubidea