Understand Git & GitHub Basics

This is the largest skill area — 25–30% of the exam. It covers version control fundamentals, the difference between Git and GitHub, core Git concepts, accounts and organizations, the GitHub Flow, Markdown, and the GitHub Desktop and Mobile apps.

Disclaimer: These are personal study notes for learning purposes only. Always verify against the official study guide.

Version Control Fundamentals

Purpose & Benefits of Version Control

A version control system (VCS) records changes to files over time so you can recall specific versions later, understand what changed and why, and collaborate without overwriting each other's work.

ⓘ What Is Git?

Per GitHub Docs: Git is a distributed version control system (DVCS) — every contributor's clone is a full-fledged repository with complete history, so you can work offline and there is no single point of failure.

Key Benefits to Know

Centralized vs. Distributed Version Control

TypeHow It WorksExamples
Centralized (CVCS)One central server holds the repository; clients check out files. Offline work is limited.Subversion (SVN), CVS, Perforce
Distributed (DVCS)Every clone is a full repository with complete history. Work offline, commit locally, sync later.Git, Mercurial

Git vs. GitHub — Know the Difference

This distinction is directly and frequently tested. Git is the tool; GitHub is a cloud platform built around it.

GitGitHub
What it isOpen-source, distributed version control softwareCloud-based hosting platform for Git repositories
Where it runsLocally on your computer (command line or GUI)On the web (github.com) — SaaS
Created byLinus Torvalds (2005)GitHub, Inc. (2008), now part of Microsoft
AddsCommits, branches, merges, historyPull requests, issues, Actions, collaboration, access control, social features
Needs internet?No — fully functional offlineYes — it's a hosted service
💡 Memory Hook

Git = the version-control engine on your machine. GitHub = the place where you host, share, and collaborate on Git repositories. You can use Git without GitHub, but GitHub requires Git under the hood. (Alternatives that also host Git include GitLab and Bitbucket.)

Key Git Concepts — Repositories, Commits & Branches

Core Terminology

The Everyday Git Workflow

CommandWhat it does
git initCreate a new local repository
git clone <url>Copy a remote repository (with history) to your machine
git add <file>Stage changes for the next commit
git commit -m "message"Record staged changes as a snapshot
git pushUpload local commits to the remote (e.g. GitHub)
git pullFetch remote changes and merge them into your branch
git branch / git checkout -bList branches / create and switch to a new branch
git merge <branch>Combine another branch into the current one
⚠ Exam Tip — Clone vs. Fork

A clone is a local copy on your machine. A fork is a copy on GitHub under your own account, typically used to contribute to a project you don't have write access to. You usually fork on GitHub, then clone your fork to work locally.

Working with GitHub

Accounts, Organizations & Enterprise

GitHub offers three account types. Understanding the hierarchy — personal → organization → enterprise — is exam-relevant.

Account TypePurpose
Personal accountAn individual identity on GitHub. Owns repositories and can belong to organizations. Every person has exactly one.
OrganizationA shared account for teams and companies. Groups people into teams with granular access to shared repositories. Owned by one or more admins.
Enterprise accountA top-level container for managing multiple organizations, centralized billing, and policy across a large company.

Plans (High Level)

Per GitHub's plans, there are four tiers. Two are for personal accounts (Free, Pro) and three for organizations (Free, Team, Enterprise).

PlanForWhat it addsIncluded allowances*
GitHub FreePersonal accounts & organizationsUnlimited public and private repositories, with a limited feature set on private repos. Community support only.2,000 Actions min/month · 500 MB Packages
GitHub ProPersonal accountsEverything in Free, plus advanced tools for private repos — protected branches, required reviewers, code owners, wikis, and repository insights/graphs — and email support.3,000 Actions min/month · 2 GB Packages
GitHub TeamOrganizationsThe same advanced private-repo tools as Pro, for every org member, plus team access controls, team pull request reviewers, and email support. Paid per user.3,000 Actions min/month · 2 GB Packages
GitHub EnterpriseOrganizations & enterprisesEverything in Team, plus SAML SSO, access provisioning, enterprise accounts that manage multiple organizations, internal repositories, compliance controls, and enterprise support. Available as Enterprise Cloud (hosted) or Enterprise Server (self-hosted).Enterprise Cloud: 50,000 Actions min/month · 50 GB Packages

* Allowances apply to private repositories; GitHub Actions on standard GitHub-hosted runners is free for public repositories. Figures change over time, so check the plans page before relying on exact numbers.

💡 Memory Hook — Pro vs. Team

Pro and Team unlock the same advanced private-repo features (protected branches, required reviewers, code owners, wikis). The difference is who they are for: Pro is for one person's personal account; Team is for an organization and adds team-based access control. Need SAML SSO or multiple organizations under one roof? That's Enterprise.

The GitHub Flow

The GitHub Flow is a lightweight, branch-based workflow. Memorize the steps and their order.

The Steps, In Order

⚠ Must-Know — GitHub Flow

The very first step is always create a branch, and the pull request is the mechanism for review before merging to main. Expect a question that asks you to put these steps in the correct sequence or identify the purpose of the pull request.

Markdown for Clear Communication

Markdown is a lightweight markup language used to format issues, pull requests, comments, READMEs, wikis, and discussions. GitHub uses GitHub Flavored Markdown (GFM).

Common Syntax

SyntaxRenders as
# HeadingHeadings (# to ######)
**bold** / *italic*Bold / italic text
- item or 1. itemBulleted / numbered lists
[text](url)A hyperlink
`code` / ```Inline code / fenced code blocks
- [ ] / - [x]Task list (unchecked / checked)
@username / #123Mention a user / reference an issue or PR
> quoteBlockquote
💡 Study Tip — Task Lists & References

Task lists (- [ ]) create checkable checkboxes, and typing # followed by a number auto-links to an issue or PR. These GFM features power issue tracking and are commonly referenced on the exam.

GitHub Desktop & GitHub Mobile

When to Use Each

ⓘ Exam Framing

Questions typically ask which tool fits a scenario: "review a PR from your phone" → GitHub Mobile; "commit and branch with a visual interface, no terminal" → GitHub Desktop; "quick edit in the browser" → github.dev.

Study Resources