Connecting GitHub to IntelliJ IDEA

How to push an IntelliJ IDEA project to GitHub

Before proceeding please ensure that you have Git installed on your device.

If no you can download and install Git by this link. https://git-scm.com/downloads

Step 1: You have two options for this

Option 1: Create a new project
  • Create a new project by checking “Create Git Repository”.
Option 2: Create a git repository for an existing project
  • Click on Version control.
  • Click on Create Git Repository.
  • Then select the project folder.
  • Finally a Git repository is created for an existing project.

Step 2: On the top menu click on ‘Git’ and select ‘Manage remotes’

Step 3: Click on the ‘+’ icon

Step 4: Define the remote by adding the GitHub repository URL

Step 5: Select the GitHub account

  • Then you will be prompted to select the GitHub account.
  • Choose the necessary GitHub account, set it as the default account for the current GitHub project, and click on login.
  • Now your GitHub repository is connected.

Step 6: Push the project into the GitHub repository

Next let’s see how to push a project to a GitHub repository.



Pages: 1 2 3 4 5