Kā izveidot esošo GitHub projekts IntelliJ IDEA?

Šie ir soļi, kā izveidot jaunu projektu no esošā GitHub projekta IntelliJ IDEA. Šajā piemērā izmantots Kotlin projekts, kaut arī jebkura veida projektiem darbības ir vienādas.

  1. Pārliecinieties, vai esat instalējis. Ja jums jau ir instalēta programma GIT, pārejiet pie darbības #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
    Kā importēt esošo GitHub projektu programmā IntelliJ IDEA
    Kā importēt esošo GitHub projektu programmā IntelliJ IDEA
    1. Make sure the Login to GitHub dialog has Host: github.com
      Kā importēt esošo GitHub projektu programmā IntelliJ IDEA
    2. Click Create API Token button
      1. Enter your github.com username and password
      2. Press Login
        Kā importēt esošo GitHub projektu programmā 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
    Kā importēt esošo GitHub projektu programmā IntelliJ IDEA
  5. Click Clone
  6. If prompted choose This Window

Your project is now created in IntelliJIDEA from your project in GitHub
Kā importēt esošo GitHub projektu programmā IntelliJ IDEA