A version control
1 Overview
Whether individual developer or team development, version control will be used. The IDEA is also well integrated with
related structures version control.
Many people think IntelliJ IDEA comes with SVN or Git version control tools, as long as the IntelliJ IDEA version is installed you can completely control the use of proper function. This is a completely wrong interpretation, IntelliJ IDEA is a native plug-in support for these version control tool, but the pretend version control client or to still installed.
Support for IntelliJ IDEA is a plug-in version control of the way to achieve. Ultimate default support the current mainstream version control software: CVS, Subversion (SVN), Git, Mercurial, IntelliJ IDEA installation, configuration and use of Perforce, TFS. And because too many people are currently using Github project or collaborate version management,
so while IntelliJ IDEA plugin comes with Github, convenience Checkout and manage your Github project.
In the actual development,It found that using SVN experience is not pleasant in the IDEAOften encounter many problems, such as IDEA in emergency situations can not be updated, and so submitted. So here, next to talk about using Git in the IDEA.
2 IDEA and configured git clone / share operation
-
Client Git installed in advance of
msysGit official website to download the Git: https://git-scm.com/
Git client TortoiseGit official website to download: http://download.tortoisegit.org/tgit/ -
Associated git.exe
File-Settings-Control-Git Version
-
On account of the associated GitHub, and test the connection
input github account password
4) Create a new repository on GitHub under the account as a test:
5) Support Checkout items directly from Github account currently logged
6) clone repository on GitHub in the IDEA:
It should be at their GitHub account, copy the project repository path, to fill in the chart Git
Repository in the URL of. As follows:
7) After the connection is successful, the project will be downloaded on github
according to their needs, select this window, or open a new window.
8) In addition, it is also connected by way of GitHub
9) Share native code to GitHub
at this time will create a new repository on GitHub, instead of updating the existing warehouse.
10) Git common operating
the Git-Repositry-
clone: copy the remote repository
commit: local commit
push: submission of remote
pull: updates to the local
11) When not using Git local history view
even though we did not use version control project, IntelliJ IDEA also provides us with a local file calendar
history records.