Jinsi ya kuunda mradi uliopo wa GitHub katika IntelliJ IDEA?

Hapa kuna hatua za kuunda mradi mpya kutoka kwa mradi uliopo wa GitHub katika 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
    Jinsi ya kuagiza mradi uliopo wa GitHub kwenye IntelliJ IDEA
    Jinsi ya kuagiza mradi uliopo wa GitHub kwenye IntelliJ IDEA
    1. Make sure the Login to GitHub dialog has Host: github.com
      Jinsi ya kuagiza mradi uliopo wa GitHub kwenye IntelliJ IDEA
    2. Click Create API Token button
      1. Enter your github.com username and password
      2. Press Login
        Jinsi ya kuagiza mradi uliopo wa GitHub kwenye 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
    Jinsi ya kuagiza mradi uliopo wa GitHub kwenye IntelliJ IDEA
  5. Click Clone
  6. If prompted choose This Window

Your project is now created in IntelliJIDEA from your project in GitHub
Jinsi ya kuagiza mradi uliopo wa GitHub kwenye IntelliJ IDEA