How to create an existing GitHub project in IntelliJ IDEA?

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.

  1. Ensure you have git installed. If you already have git installed then move on to step #2.
    1. You can install git using chocolatey package manager.
      1. 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"
      2. Next install git by copy and pasting the following command into the same administrative command prompt
        cinst -y git
        
      3. Close the administrative command prompt
  2. Open any existing project in IntelliJ IDEA.
  3. Then goto File -> New -> Project from Version Control -> GitHub
    How to import an existing GitHub project into IntelliJ IDEA

    How to import an existing GitHub project into IntelliJ IDEA

    1. Make sure the Login to GitHub dialog has Host: github.com
      How to import an existing GitHub project into IntelliJ IDEA
    2. Click Create API Token button
      1. Enter your github.com username and password
      2. Press Login
        How to import an existing GitHub project into IntelliJ IDEA
    3. Press Login again
  4. Once logged in expand the Git Repository URL by pressing the down arrow icon and select the project that you would like to Create
    How to import an existing GitHub project into IntelliJ IDEA
  5. Click Clone
  6. If prompted choose This Window

Your project is now created in IntelliJIDEA from your project in GitHub
How to import an existing GitHub project into IntelliJ IDEA

לאָזן אַ ענטפֿערן