Dry goods|The graphic teaches you how to bind git and upload to Github in IntelliJ IDEA

The graphic teaches you how IntelliJ IDEA binds git and uploads to Github

Tip: Example IntelliJ IDEA version 2020.2


Preface

1. How does IntelliJ IDEA bind git?
2. How does IntelliJ IDEA upload to GitHub?

1. How does IntelliJ IDEA bind git?

Steps for usage

1. Download and install local git: https://git-scm.com/downloads

Insert picture description here
After the installation is complete, the desktop right click will appear, indicating that the installation is complete.
Insert picture description here
2. Then open our IntelliJ IDEA
Insert picture description here
3. Click File->Settings
Insert picture description here
4. Search git in the search bar and click.
Insert picture description here
5. Here select the cmd\git.exe file in your Git installation directory

Insert picture description here
6. Log in to your GitHub
Insert picture description here
Insert picture description here

two,

How does IntelliJ IDEA upload to GitHub?

Steps for usage

1. Create a local warehouse
VCS→Import into Version Control→Create Git Repository

Insert picture description here
Insert picture description here
Pay attention to observation: At this time, the red name of your project file indicates that the file has not been added to the local warehouse.

2. Add your project to the local warehouse.
Insert picture description here
At this point, you will find that the color of the file in your project is programmed to green to indicate that the file has been added to the temporary storage area
Insert picture description here
. Submit the project to the local warehouse
Insert picture description here
3. Push your project to the remote warehouse
Insert picture description here
Insert picture description here
Insert picture description here

Three. Summary

1. Download and install local git: https://git-scm.com/downloads
2. In IntelliJ IDEA, select the cmd\git.exe file in your Git installation directory
3. Log in to your GitHub and bind it
4.. Create Local warehouse
5. Bind your remote warehouse
6. Push your project to the remote warehouse

Guess you like

Origin blog.csdn.net/weixin_46235428/article/details/109253798