Skip to end of metadata
Go to start of metadata

Redirection Notice

Icon

How do I configure a VCS in IntelliJ IDEA?

Both Eclipse and IntelliJ IDEA provide excellent support for Version Control Systems (VCS) and can be integrated with a variety of external ones, such as Git, GitHub, Mercurial, CVS, Subversion and more. In IntelliJ IDEA, you first open the Settings dialog box (via Ctrl + Alt + S) and select Version Control. From the right pane, you click the +button to reference a VCS tool.

You can configure a VCS by selecting the appropriate one and specifying the connection settings like server name and access credentials, and then map project folders to VCS you have configured.


To add a project to a VCS, simply map its root folder to that VCS.

How can I inspect Diffs?

In Eclipse you have the Sync perspective to show the difference between your local version of the code and the version stored on the selected VCS server. In IntelliJ IDEA, you can inspect the differences between local and committed code through the Changes view.

You turn on the Changes view from the View →  Tool windowsmenu. The Local tab shows the changes you've done locally. In case of collaborative work, an additional Incoming tab will show the changes just checked in by other team members but not synced yet.

From within the Changes view, by clicking Ctrl + Dyou can bring up a window that shows the differences on a per file basis.

How do I Check Out a project?

From the Welcome Screen, you select Check out from Version Control and follow next instructions.

In particular, IntelliJ IDEA will ask you to indicate the repository to clone and will then proceed making a copy of all files.

  • No labels

1 Comment

  1. Anonymous