What Is Git and GitHub? Version Control Explained for Beginners

Welcome to Lesson 1 of the free Git and GitHub tutorial. Before typing any commands, you will understand what version control is, what Git and GitHub each do, how they differ, and the key words used throughout the course.

Advertisement

๐Ÿ“– What You’ll Learn: the problem version control solves, what Git is, what GitHub adds, Git vs GitHub, key terms (repository, commit, branch, merge, remote, pull request), the basic workflow, and why Git matters for testers.


๐Ÿ—‚๏ธ The Problem Git Solves

Have you ever had files like these?

test-plan.docx
test-plan-final.docx
test-plan-final-v2.docx
test-plan-final-v2-REALLY-FINAL.docx

That is “version control” done by hand: hard to compare, easy to overwrite, and impossible to share safely with a team. Software projects have the same problem on a much bigger scale: hundreds of files, many people editing them at the same time, and the need to know who changed what, when and why.

Version control software solves this. It records every change to your files as a series of snapshots, lets you go back to any earlier version, and lets several people work on the same project without overwriting each other.


๐Ÿง  What Is Git?

Git is the world’s most widely used version control system. It is free, open source, and runs on your own computer.

  • Created in 2005 by Linus Torvalds, the creator of Linux, to manage the Linux kernel’s source code.
  • Distributed: every developer has a full copy of the project and its complete history, so you can work offline and nothing depends on a single server.
  • Fast: most operations (commit, branch, view history) happen locally in milliseconds.
  • Safe: every snapshot is identified by a cryptographic hash, so history cannot be silently corrupted.

With Git you can:

  • Save snapshots of your project (commits) with a message explaining the change.
  • See exactly what changed between any two versions.
  • Work on new features in isolated branches and merge them when ready.
  • Undo mistakes, even days later.

โ˜๏ธ What Is GitHub?

GitHub is an online platform that hosts Git repositories and adds tools for working together. It launched in 2008 and has been owned by Microsoft since 2018. It is the largest home of open-source code in the world.

GitHub adds what Git alone does not have:

GitHub featureWhat it gives you
Remote repositoriesA shared copy of your project in the cloud
Pull requestsPropose, discuss and review changes before merging
Issues and ProjectsTrack bugs, tasks and plans
GitHub ActionsAutomatically build, test and deploy (CI/CD)
GitHub PagesHost websites for free
Security toolsDependabot alerts, secret scanning, code scanning
ProfilesShow your work to recruiters and the community

โš–๏ธ Git vs GitHub: The Key Difference

GitGitHub
What it isVersion control softwareA website and service that hosts Git repositories
Where it runsOn your computerIn the cloud (github.com)
Needs internetNoYes
Made byLinus Torvalds and the open-source communityGitHub Inc., owned by Microsoft
CostFree and open sourceFree plans, plus paid plans for teams and enterprises
AlternativesMercurial, SVN (older)GitLab, Bitbucket, Azure DevOps Repos

๐Ÿ’ก Tip: An easy way to remember it: Git is the tool, GitHub is the place where you share what the tool tracks. You can use Git without GitHub, but GitHub is built around Git.


๐Ÿ“š Key Words You Will Meet in This Course

TermMeaning
Repository (repo)A project folder tracked by Git, including its full history
CommitA saved snapshot of your changes, with a message and an author
BranchAn independent line of work, e.g. a new feature
MergeCombining the changes from one branch into another
RemoteA copy of the repository on a server, such as GitHub
CloneDownloading a full copy of a remote repository
Push / PullSending your commits to the remote / getting others’ commits
Pull request (PR)A GitHub request to review and merge a branch
HEADA pointer to the commit you are currently on

๐Ÿ”„ How a Typical Workflow Looks

 Your computer                                         GitHub
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”       โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Working folder โ†’ Staging area โ†’ Local repo โ”‚ push  โ”‚ Remote repo  โ”‚
โ”‚   (edit)         (git add)     (git commit)โ”‚ โ”€โ”€โ”€โ”€โ–ถ โ”‚  (shared)    โ”‚
โ”‚                                            โ”‚ โ—€โ”€โ”€โ”€โ”€ โ”‚              โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ pull  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
  1. You edit files in your working folder.
  2. You choose which changes to save with git add (the staging area).
  3. You save a snapshot with git commit.
  4. You push commits to GitHub so others can see them, and pull their changes.

Each step has its own lesson in Modules 2 and 3.


๐Ÿงช Why Testers and QA Engineers Need Git

  • Automation frameworks, test data and CI pipelines all live in Git repositories.
  • Tests run automatically in GitHub Actions on every pull request (see Run Playwright tests in GitHub Actions).
  • Reviewing developers’ pull requests helps you test earlier.
  • Git and GitHub questions appear in almost every QA automation and SDET interview.

๐Ÿ“ Assignment

  1. In your own words, explain the difference between Git and GitHub to a friend in three sentences.
  2. List three problems in your current work (or studies) that version control would solve.
  3. Visit github.com/explore and find one open-source project related to testing. Note its number of stars, contributors and the date of its last commit.
  4. Write down the meaning of: repository, commit, branch, merge, push and pull.

โ“ FAQ

๐Ÿค” What is Git in simple words?

Git is free software that keeps a complete history of changes to your project’s files, so you can see what changed, go back to earlier versions and work on several changes in parallel.

๐Ÿค” What is the difference between Git and GitHub?

Git is version control software that runs on your computer. GitHub is a website that hosts Git repositories online and adds collaboration features such as pull requests, issues and GitHub Actions.

๐Ÿค” Is Git free?

Yes. Git is free and open source. GitHub also has a free plan with unlimited public and private repositories.

๐Ÿค” Can I use Git without GitHub?

Yes. Git works fully on your own computer. You only need GitHub (or GitLab, Bitbucket) to share repositories and collaborate online.

๐Ÿค” Who uses Git?

Almost every software team, from startups to Microsoft and Google, as well as testers, DevOps engineers, data scientists and technical writers.


๐ŸŽฏ Next Steps

๐ŸŽฌ Learn Git and GitHub step by step: watch the series on YouTube!

Subscribe to SqaToolsByDY • Practice on sqatools.in

1 thought on “What Is Git and GitHub? Version Control Explained for Beginners”

Leave a Comment