Github Integration with IntelliJ IDEA

Github Integration with IntelliJ IDEA

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.

No alt text provided for this image

-         Copy the newly created repository path

No alt text provided for this image


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.

No alt text provided for this image

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”.

No alt text provided for this image
No alt text provided for this image

-         After press enter, a new file will create with the git files and the same name that we add for our git repository.

No alt text provided for this image


Step 5

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

No alt text provided for this image


Step 6

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

No alt text provided for this image


Step 7

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

No alt text provided for this image


Step 8

-         Type the command as git<space>push in the git bash.

No alt text provided for this image

-         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”

No alt text provided for this image

-         Sometimes you may ask for the username and password again. Then give your GitHub username and password.

No alt text provided for this image

Step 10

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

No alt text provided for this image


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

Great. clear content. keep up the good work Irushi

Great! Very useful. Keep up the good work! ❤

To view or add a comment, sign in

More articles by Irushi Ananda

  • Accessibility is a Human Right.

    Access to the web or mobile application is a human right. So as a tester it’s our responsibility to make sure our…

  • Are Non-functional requirements difficult to test and hard to express?

    Yes, Non-functional requirements are not bothering about the user-given requirements (SRS) or the functional…

  • DO YOU EVER GET STUCK WITH TASK COMPLETION?

    Yes. The majority will be struggled to complete tasks on time.

  • HAS THIS HAPPENED BEFORE?

    Hopefully, the answer will be a ‘yes’ for the majority. Mainly, this kind of scenario can happen within a big project…

    6 Comments
  • Trends in Software Testing

    A second around the world is a set of tremendous changes and innovations. The software industry is one of the sectors…

    2 Comments

Others also viewed

Explore content categories