GitHub, and a tour of a repository
Last updated
Kusina is about to go online, and most projects online live on GitHub. Before Ana makes an account, she looks around. In this lesson you'll see what GitHub is and isn't, how to make an account safely, and how to read any repository's page: its files, its history and who changed what. Stages 4 and 5 show real screenshots of GitHub, each dated, with numbered parts.
By the end of this lesson you can
- Say what GitHub adds to Git, and name other sites that do the same
- Make a GitHub account safely: username, email privacy and two-factor authentication
- Find a repository's files, licence, history and issues from its main page
- Read one file's history and blame on GitHub
Git and GitHub
Git is the tool on your computer that keeps your history. GitHub is a website that keeps a copy of a Git repository online, so other people can read it, copy it and help with it. GitHub is the largest such site; GitLab, Codeberg and Bitbucket do the same job, and everything Git does works with all of them.
GitHub adds things Git doesn't have: a web page for every repository, accounts and permissions, issues for reporting problems, pull requests for proposing changes, and reviews. This stage puts Kusina on GitHub and keeps the two copies in step; Stage 5 is about working with other people there.
GitHub also offers services this course doesn't teach: Actions (running checks automatically), Pages (publishing a website), Codespaces, Copilot and its security tools. Simple Software Development covers automated checks and releases, and Simple Cybersecurity covers security.
An account, made safely
You can read public repositories without an account. To make your own, or to help with someone else's, you need one. GitHub's terms say accounts are for people 13 and over; if you're younger, keep working in the sandbox and with Git on your own computer.
Three choices matter more than they look:
- Your username is public and appears in the address of everything you make:
github.com/ana-reyes/kusina. Your full name and school together say more about you than you might want. - Your email. Every commit carries an email address (lesson 1.3). In your email settings, choose to keep your address private: GitHub then gives you a
noreplyaddress to commit with, so your real one isn't published in every commit. - Two-factor authentication. GitHub requires it from everyone who contributes code. After your password, you prove it's you a second way: an authenticator app, a passkey or a security key. Save the recovery codes somewhere safe and offline; they're how you get back in if you lose your phone.
The course never asks for your GitHub password or codes. You type those only on github.com itself.
A repository, part by part
This is a real repository: first-contributions, a project made for people making their first contribution to open source.
- Owner / name. Who owns it (a person or an organisation) and what it’s called. Together they make its address:
github.com/firstcontributions/first-contributions. - Tabs. Code, Issues, Pull requests and more. Only Code is Git; the other tabs are GitHub’s own features. Stage 5 uses Issues and Pull requests.
- Public. Anyone can read it. A private repository can only be seen by people its owner invites.
- Notifications, Fork and Star. Watch it for news, make your own copy of it (a fork, lesson 5.5), or star it, which is a public bookmark.
- Branch picker. Which branch you’re looking at, here
main. The files below are that branch’s newest commit. - Code button. The address to copy the repository with
git clone, or a ZIP of its files (lesson 4.5). - Latest commit and commit count. The newest commit on this branch, its short hash and when it was made. The count opens the whole history: the same list as
git log. - Files. Every file and folder, each with the message of the last commit that changed it.
- README. GitHub shows README.md under the files. It’s the project’s front page: what it is, and how to use it and help.
- About. A short description, topics, and links to the licence and the contributing guide.
Find it
Where would you click? Each part of the page is a button; choose one.
Find it 1 of 3
Where would you see every commit ever made to this project?
Screenshot of github.com, captured on 5 December 2026, signed out. Yours may look a little different.
A file, its history and its blame
Click a file and GitHub shows it. Markdown files are shown formatted (Preview); Code shows the text as it is.
- Path. Where the file is in the repository. Each part is a link back up.
- Last commit. Who last changed this file, the commit’s message, and when.
- Preview, Code and Blame. Blame shows each line beside the commit that last changed it, the same as
git blame(lesson 8.5). - Raw, copy and download. The file’s plain text, copied, or saved to your computer.
- Edit. The pencil edits the file on the website. Lesson 4.4 does it.
The commit count from step 3 opens the history: every commit, grouped by day, each with its message, author and short hash.
- Branch. Whose history you’re reading: here, main’s.
- Day. Commits are grouped by the day they were made.
- Message. The first line of the commit message. Click it to see exactly what changed.
- Author and time. Who made the commit, and when.
- Short hash. The commit’s ID, as in
git log --oneline. - Browse files. The whole repository as it was at that commit.
Many of these commits say "Merge branch…": every one is someone's first contribution, merged in. You'll make one in lesson 5.5.
Spot the trap: "GitHub is Git"
Joaquin says: “I don’t need to learn Git. I’ll just use GitHub.”
What happens if…
Check what you learned
Sources
Every command on this page behaves as these pages describe, and the sandbox prints what Git 2.55 prints. Hosting features (pull requests, protected branches) come from the host’s own documentation.
- GitHub Docs: About GitHub and Git: what each one is, and how they work together
- GitHub Docs: Creating an account on GitHub: signing up
- GitHub Docs: About mandatory two-factor authentication: required for everyone who contributes code, since March 2023
- GitHub Docs: Setting your commit email address: keeping your email private with a noreply address
- GitHub Docs: GitHub Terms of Service: accounts are for people aged 13 and over
- GitHub Docs: Viewing and understanding files: a file's history and its blame view