To be able to work on the files, first you need to get them from the repository. To get the files from the remote Git repository, you need to use the clone
command available in the VCS menu, under the Checkout from Version Control option, as shown here:
In the Clone Repository dialog box, provide necessary options, such as the remote repository URL, parent directory, and the directory name to clone into, as shown in the following screenshot:
After successful cloning, IntelliJ IDEA will suggest creating a project based on the cloned sources. Refer to Chapter 2, Off We Go – To the Code, to find the description on how to deal with the project creation process. If you don't have the remote repository for your project, you can work with the offline local Git repository. To create a local Git repository, select Create Git repository from the VCS menu, as shown in the following screenshot:
This option will execute the git init
command in the directory of...