Git after learning over commonly used commands and terminal operations, development projects and start learning how to use Git on IDEA
First select create new project
new projects.
Select the Maven
recommended SDK
version 1.8 ( IDEA
comes with SDK
11, the version is too high, some follow-up function does not work properly), check create from archetype
, and select org.apache .maven .arc hetypes:maven-arc hetype -webapp
, click next
.
Fill in the project name, select the item to store addresses.
GroupId
Defines the project belongs to which group, for example, if your company is mycom, there is a project for myapp, then it should be groupId com.mycom.myapp.
Check override
button, select user settings file
the path to the file into setting.xml .m2 folder, after click finish
.
Select VCS
under Import into Version Control
the Create Git Repository
button, select the create git respository
button, select the previously created StudyGit
storage, click open
the button.
Blue arrow represents the upper right corner Update Project
, as the name suggests is the operating Git pull the blue √
represents commit
, that is, git commit operation.
In the submission interface, the Commit Massage
description is submitted content represented below Diff
shows the contents of the previous version and you want to submit at this time there is no difference. After confirmation, click the commit
button, then the contents of your submission of the deposit to your local warehouse inside.