Seven, IDEA-- version control (Git & Github)

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.

Here Insert Picture Description
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.

Here Insert Picture Description

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

  1. 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/

  2. Associated git.exe
    File-Settings-Control-Git Version
    Here Insert Picture Description

  3. On account of the associated GitHub, and test the connection
    input github account password
    Here Insert Picture Description

4) Create a new repository on GitHub under the account as a test:

Here Insert Picture Description
5) Support Checkout items directly from Github account currently logged
Here Insert Picture Description
6) clone repository on GitHub in the IDEA:
Here Insert Picture Description
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:
Here Insert Picture Description
7) After the connection is successful, the project will be downloaded on github
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
according to their needs, select this window, or open a new window.
8) In addition, it is also connected by way of GitHub

Here Insert Picture Description
9) Share native code to GitHub
Here Insert Picture Description
Here Insert Picture Description
at this time will create a new repository on GitHub, instead of updating the existing warehouse.

10) Git common operating
Here Insert Picture Description
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
Here Insert Picture Description
Here Insert Picture Description
even though we did not use version control project, IntelliJ IDEA also provides us with a local file calendar
history records.

Guess you like

Origin blog.csdn.net/m0_38143867/article/details/92787713