Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

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 VCS systems, 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.

In IntelliJ IDEA you first configure a VCS by selecting its type 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 windows menu. 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+D you 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