Here are the steps for creating a new project from an existing GitHub project in IntelliJ IDEA. This example uses a Kotlin project, though the steps are the same for any type of project.
- Ensure you have git installed. If you already have git installed then move on to step #2.
- You can install git using chocolatey package manager.
- To install chocolatey package manager, open an administrative command prompt and copy and paste the following command. If you already have chocolatey installed then you can skip this step.
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
- Next install git by copy and pasting the following command into the same administrative command prompt
cinst -y git
- Close the administrative command prompt
- To install chocolatey package manager, open an administrative command prompt and copy and paste the following command. If you already have chocolatey installed then you can skip this step.
- You can install git using chocolatey package manager.
- Open any existing project in IntelliJ IDEA.
- Then goto File -> New -> Project from Version Control -> GitHub
How to import an existing GitHub project into IntelliJ IDEA
- Make sure the Login to GitHub dialog has Host: github.com
- Click Create API Token button
- Enter your github.com username and password
- Press Login
- Press Login again
- Make sure the Login to GitHub dialog has Host: github.com
- Once logged in expand the Git Repository URL by pressing the down arrow icon and select the project that you would like to Create
- Click Clone
- If prompted choose This Window
Your project is now created in IntelliJIDEA from your project in GitHub