Manage projects hosted on GitHub
Check out a project (clone)
You can clone a repository that you want to contribute to directly from IntelliJ IDEA and create a new project based on it.
From the main menu, choose.
In the Get from Version Control dialog, choose GitHub on the left.
Specify the URL of the repository that you want to clone. You can select a repository from the list of all GitHub projects associated with your account and the organization that your account belongs to.
In the Directory field, enter the path to the folder where your local Git repository will be created.
Click Clone. If you want to create a project based on these sources, click Yes in the confirmation dialog. IntelliJ IDEA will automatically set Git root mapping to the project root directory.
Share a project on GitHub
Jump to the GitHub version of a file
You can jump from IntelliJ IDEA to the GitHub version of a file. IntelliJ IDEA detects which branch is currently active as well as the latest revision of the file, and opens the GitHub copy of the selected file in the corresponding commit in your web browser. If you are opening the GitHub file version from the editor, the file will be also automatically scrolled to the current line.
- Select a file in the editor or in the Project view, and choose Open on GitHub from the context menu or from the Ctrl+Shift+A popup. The remote version of the file will open in the browser.
If the file points to more than one remote, you will be prompted to select the appropriate repository.