Git with the use of IntelliJ IDEA

1. The computer terminal installed git

2.IDEA configure git

The menu bar -settings-Version Control-Git-Path to Git executable modify the path to the local path of git.

3.pull operation

The items downloaded from the local GitHub up into the following steps

-1-菜单-VSC-Checkout from Version Control-Github

Enter the address -2- cloud warehouse project, clone can

4.push operation

The local project uploaded to the cloud

-1- Similar github hosted site, create a new warehouse (ie project), to obtain its address (https)

-2- local project to establish a local warehouse

-2-1-菜单-VSC-import into Version Control-Create Git Repository-d:test

-2-2-Add operations, add items to a local warehouse, right-project -Git-Add, submit code to a local warehouse stage area

-2-3-commit and push operations, commit operation will be submitted to the local repository project, pushed to the cloud in a warehouse, right-project -Git-commit-Push, enter the cloud warehouse site

The commit changes ctrl + k

commit to modify the code submitted to the local

6. Update ctrl + t

The latest version of the cloud to the local code update, the code that is synchronized to the cloud native code

7. branch development

-1- create a local branch (bottom right corner)

-2- handover branch (checkout), operating on the branch

-3- issued a merger request, the owner of the warehouse in hosting site can handle the merger request

Guess you like

Origin www.cnblogs.com/KSea/p/12093919.html