Spring Boot Learning Notes (3) Configuring Git under IDEA


This paper mainly records the detailed steps and basic usage of Git configuration under IDEA, which is convenient for beginners to master and use quickly.

preparation in advance

First you need to have a Github account, click here to register.

Next, you need to install git, click here to download it. Please refer to other online articles for specific installation steps, but describe more.

IDEA Configuration Git

stayFileSettingsVersion ControlGitPath to Git executableChoose the installation path of your Git, usually IDEA will automatically bring it out, or is it smarter, ClickTestTest whether the settings are successful.

stayFileSettingsVersion ControlGibHubMiddle Hosts Inputgithub.comAnd then clickCreate API TokenEnter your GitHub account password, generate the corresponding Token, and clickTestTest Success

At this point, the configuration of Git under IDEA has been completed.

Simple use

stayVCSImport into Version ControlCreate local warehouse

Then right-click on your project and selectGitThe basic operation can be carried out as follows:


For me, the use of Git under IDEA is not particularly useful, depending on personal preferences.

Recommended Today

Java atomicinteger class using

A counter For ordinary variables, when multithreading operations are involved, classic thread safety problems will be encountered. Consider the following code: private static final int TEST_THREAD_COUNT = 100; private static int counter = 0; public static void main(String[] args) { final CountDownLatch latch = new CountDownLatch(TEST_THREAD_COUNT); Thread[] threads = new Thread[TEST_THREAD_COUNT]; for (int i = […]