Git and GitHub: save points for your code
Repositories, commits, branches and pull requests, and why every builder (and every AI agent) uses them.
Git is the save system; GitHub is where saves live online
Git is free software that tracks every change to a folder of code. Each saved snapshot is a commit, with a message explaining what changed. If something breaks, you can see exactly what changed and go back.
GitHub is a website (owned by Microsoft) that hosts Git projects online so you can back them up, share them and work together. GitLab and Bitbucket are alternatives. A project on GitHub is called a repository, or repo.
The words you'll hear every day
- Repository (repo): the project folder plus its full history.
- Commit: a saved snapshot with a message, like 'Add sign-in page'.
- Branch: a parallel copy where you build something new without touching the main line. The main line is usually called main.
- Clone: download a repo to your computer.
- Push / pull: send your commits up to GitHub / bring others' commits down.
- Pull request (PR): a request to merge a branch into another, with a page to review the changes, discuss and run checks.
- Merge: combine a branch's changes into another branch.
- Merge conflict: two branches changed the same lines; a person (or agent) decides which to keep.
- Issue: a to-do, bug report or idea tracked in the repo.
- README: the front page of a repo explaining what it is and how to run it.
- .gitignore: a list of files Git must never save, such as .env files with secrets.
A healthy workflow
Real teams (including Digital Builders) never build straight on main. A common pattern: make a branch for one feature, commit small steps, push, open a pull request, let automated checks (CI) run, review the diff, then merge. Many teams have an integration branch called develop that collects work before a release to main.
This matters even more with AI. Agents should work on branches and hand you pull requests, so nothing reaches your live site without review.
GitHub does more than store code
- GitHub Actions: automation that runs tests and builds on every push (this is CI, continuous integration).
- GitHub Copilot: AI assistance and a coding agent that can work on issues and open pull requests.
- GitHub Pages: free hosting for simple static sites.
- Connected deploys: hosts like Vercel watch your repo and deploy on every push.
Key terms
- Git
- Free software that tracks every change to a folder of code.
- GitHub
- A website that hosts Git repositories online for backup, sharing and teamwork.
- Repository (repo)
- A project folder plus its full change history.
- Commit
- A saved snapshot of changes with a message.
- Branch
- A parallel line of work so you can build without touching the main line.
- Clone
- Download a copy of a repository to your computer.
- Push / pull
- Send your commits to GitHub / bring others' commits down.
- Pull request (PR)
- A request to merge one branch into another, with review and checks.
- Merge
- Combine one branch's changes into another.
- Merge conflict
- Two branches changed the same lines; someone decides which to keep.
- Issue
- A tracked to-do, bug report or idea in a repository.
- README
- The front page of a repository: what it is and how to run it.
- .gitignore
- A list of files Git must never save, such as .env secrets.
- CI (continuous integration)
- Automatic checks (tests, builds) that run on every push or pull request.
Try it
Make your first pull request
- Create a free GitHub account and a new repository with a README.
- On GitHub, create a branch called add-about.
- Edit the README on that branch: add one line about you. Commit with a clear message.
- Open a pull request from add-about into main, read the diff, and merge it.
Ask an AI tutor about this guide
Copy a prompt into ChatGPT, Claude or Gemini to go deeper. Check what it tells you against the guide.
- Explain it like I'm 12
- Quiz me (5 questions, one at a time)
- Show me a real example for my situation
- What do beginners get wrong?
Knowledge check
Five questions. Get 4 right to earn the Version Keeper badge. You can retake it as often as you like.
Question 1 of 5
Finished the How software works guides? Take the How software works track test for ten mixed questions.
My notes
Write what clicked, what confused you, and what you want to try. Saved in this browser only.
Learn it live
Digital Builders University runs small live workshops where you build something real with an instructor beside you, starting with Vibe Coding 101.
See workshopsPractise it
- Build Challenge: Your portfolio site (Builder, 3 hours)
- Game: Error Detective (read real error messages and pick the fix)
- Cheat sheet: Git and GitHub
- Game: Code Scramble (put the lines of a working program back in order)
Official sites
- GitHub Docs: Get started (opens in a new tab)
- GitHub Skills on GitHub Learn (free interactive courses) (opens in a new tab)
- Git (opens in a new tab)
Last reviewed November 25, 2026. AI tools change fast; check each tool’s own site for current features, plans and prices.
