Github Integration with IntelliJ IDEA

Irushi Ananda
Embla Tech
Published in
3 min readAug 15, 2021

Github is the most popular and one of the biggest repositories among the software community. It has various useful features that development teams are able to work together on the same project and also able to create new versions in the project without disrupting the current versions. So, keeping your project in a repository is needed.

There are so many ways to add the IntelliJ project to the Github repository. Today I’ll describe how to add your IntelliJ project to the git repository by using command lines.

Step 1

  • Go to your Git account and create a new git repository.

Step 2

  • Copy the newly created repository path

Step 3

  • Cd to your project directory or you can do the below steps.
  • Go to the location where you want to put the project.

Step 4

  • Right-click on the folder and click “Git Bash Here” and type git<space>clone<space>paste the copied git URL and press “Enter”.
  • After press enter, a new file will create with the git files and the same name that we add for our git repository.

Step 5

  • Go to the original IntelliJ project folder and copy the files you want to add to GitHub and paste it into the newly cloned folder.

Step 6

  • Type the command as git<space>add<space>. in the git bash.

Step 7

  • Type the command as git<space>commit<space>-m<space>”git message; ex- initial commit” in the git bash.

Step 8

  • Type the command as git<space>push in the git bash.
  • And the GitHub login page will automatically display when you are doing this for the first time.

Step 9

  • Give your GitHub login credentials and click “Login”
  • Sometimes you may ask for the username and password again. Then give your GitHub username and password.

Step 10

  • After the git push has been done, check your git repo whether committed codes have been added or not.

Apart from the above commands, there may be some other commands to add the IntelliJ project to Github.

--

--

Irushi Ananda
Embla Tech

Software QA Engineer at Agrando as Embla Software Innovations (Pvt) Ltd.