Confused between Git and GitHub?

image.png

image.png

I know like me even you thought Git and GitHub both are similar. So you are in right place to know them. Think of it like parent and child where Git is a parent and GitHub is the child. Note that there are other childs for Git like GitLab, BitBucket which are pretty similar to GitHub.

Let's compare and learn

  • Git is a software that is free and used in tracking changes made to a file previously.

    • GitHub is a service that provides hosting files on the internet.
  • Git is installed in your local machine which is your personal computer. So only you can see the files.

    • GitHub is hosted on the web where you can create your account and create files. You can also share those files with your friends across the internet.
  • Git manages source code history i.e it can show who, when and what was changed in the code.
    • GitHub stores Git repositories on the internet.

Additional Info

Git was released in 2005

GitHub was launched in 2008

Git is used in local machine.

It provides command line interface. You need to install git software. image.png

GitHub is used on internet.

It provides UI to access git repositories. You need internet and you are ready to go. image.png

The main difference or their roles, Git is a place for files to see when were changes made to it. GitHub is a place where one can share files on the internet which will help in debugging.

Hope you learned something from this if not everything :)