CodeBlanks Logo Icon CodeBlanks

What is GitHub?

Learn that GitHub is a repository hosting service.

What Is GitHub?

GitHub is a platform that lets you host Git repositories on the internet. You can store your code online, access it from different computers, and share projects with others.

Git repository
      |
      v
   GitHub
      |
      v
Share and collaborate

Git provides version control, while GitHub offers repository hosting and collaboration features.

Collaborating with GitHub

Multiple people can work on the same project through GitHub. Each developer can make changes in their local Git repository and use the project history to track their work.

Developer A ----\
                 GitHub Repository
Developer B ----/

Repositories can be public or private. You can share your projects or restrict access to selected people.

Practice Describe the GitHub Service

Assign GitHub to the platform variable. Then assign Repository hosting to the service variable and print both variables on separate lines.

Starter code

terminal
const platform = "";
const service = "";

// İki değeri yazdır

Sample solution

terminal
const platform = "GitHub";
const service = "Repository hosting";

console.log(platform);
console.log(service);

Expected output

GitHub
Repository hosting

Questions and answers

Review the lesson questions together with their answers. To test yourself, solve the lesson interactively.

1 What is the main difference between Git and GitHub?

  • Git only works with an internet connection.
  • GitHub is a programming language.
  • Git provides version control, while GitHub hosts repositories. Correct answer
  • GitHub automatically deletes local Git repositories.

Explanation: Git is a version control system. GitHub is a platform that hosts Git repositories online and makes sharing easier.

2 Identify GitHub's Main Service

Question
GitHub, Git depolarını internet üzerinde ____ ve geliştiricilerin birlikte çalışmasını sağlar.
Answer
GitHub, Git depolarını internet üzerinde barındırır ve geliştiricilerin birlikte çalışmasını sağlar.

Explanation: One of GitHub's main services is hosting Git repositories online.

3 GitHub Features

Term Meaning
GitHub Online repository platform
Hosting Storing a repository online
Collaboration Developing projects together
Private repository Repository with restricted access

All lessons in Beginner