DEV Community

Cover image for Introduction to Git and Github for beginners
Bhavna Makode
Bhavna Makode

Posted on

Introduction to Git and Github for beginners

Many students who are new to coading might have heard about the terms Git and Github. But they dont't know what is git and github? Or how to use it? Or why to use it?
This article is the answer to all this questions.
Before moving to learning git and github we need to know about Version control system and some important terminologies.

What is version control system?
Version control also known as source control is the practice of tracking and managing changes in the source code.

Here are some important terminologies we need to know before learning git and github.

  • repository/repo- The databese/folder storing the files.
  • push- Push changes to the github repo.
  • pull- Pull changes from the github repo.
  • clone- Making copy of the repo on your machine.
  • fork- Making copy of the repo that allows you to make your own changes without impacting the original project.

What is Git and Github?
Git and Github are two separate things. Github is a developer plateform that allows developers to create, store, manage and share their code. Git is a software or a version control system used to track changes in the source code, enabling multiple developers to work together.

Let's understand the use of git and github with the help of a problem statement.

Problem Statement-
Suppose we have a team of 10 members and they are working on a website. The problem is how they will keep track of small as well as the larger changes made by different peoples of this team?

Solution-
The one and only solution to this is github. A head of the team made a repository and kept the code on this github repo. Now, other members will fork and clone that repo and will start working. They will know push and pull the new changes timely. While pushing the changes we create a pull request which is seen and merged by the repo owner or the head of the team.

Let me know in the comments how this example was??

Thanks for reading

Top comments (0)