Your repository on GitHub · lesson 1 of 9
Commands and ideas in this lesson
AGitHuba website that hosts Git repositories
BRepository pageowner/name, tabs, files, README
CTwo-factor authenticationa second proof that it's you
DHistory and Blamegit log and git blame, on the website

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:

  1. 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.
  2. 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 noreply address to commit with, so your real one isn't published in every commit.
  3. 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.

Screenshot of a repository’s main page (firstcontributions/first-contributions), with numbered callouts. The numbered list below describes each part.
  1. 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.
  2. 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.
  3. Public. Anyone can read it. A private repository can only be seen by people its owner invites.
  4. 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.
  5. Branch picker. Which branch you’re looking at, here main. The files below are that branch’s newest commit.
  6. Code button. The address to copy the repository with git clone, or a ZIP of its files (lesson 4.5).
  7. 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.
  8. Files. Every file and folder, each with the message of the last commit that changed it.
  9. 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.
  10. About. A short description, topics, and links to the licence and the contributing guide.
A repository’s main page on GitHub. Screenshot of github.com, captured on 5 December 2026, signed out. GitHub changes its pages often, so yours may look a little different; the names in the list stay the same.

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 a repository’s main page (firstcontributions/first-contributions). Each part you can choose is a button, listed in reading order.

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.

Screenshot of a README.md file open on GitHub, with numbered callouts. The numbered list below describes each part.
  1. Path. Where the file is in the repository. Each part is a link back up.
  2. Last commit. Who last changed this file, the commit’s message, and when.
  3. Preview, Code and Blame. Blame shows each line beside the commit that last changed it, the same as git blame (lesson 8.5).
  4. Raw, copy and download. The file’s plain text, copied, or saved to your computer.
  5. Edit. The pencil edits the file on the website. Lesson 4.4 does it.
A file open on GitHub. Screenshot of github.com, captured on 5 December 2026, signed out. GitHub changes its pages often, so yours may look a little different; the names in the list stay the same.

The commit count from step 3 opens the history: every commit, grouped by day, each with its message, author and short hash.

Screenshot of the commit history of the same repository, with numbered callouts. The numbered list below describes each part.
  1. Branch. Whose history you’re reading: here, main’s.
  2. Day. Commits are grouped by the day they were made.
  3. Message. The first line of the commit message. Click it to see exactly what changed.
  4. Author and time. Who made the commit, and when.
  5. Short hash. The commit’s ID, as in git log --oneline.
  6. Browse files. The whole repository as it was at that commit.
A repository’s commit history on GitHub. Screenshot of github.com, captured on 5 December 2026, signed out. GitHub changes its pages often, so yours may look a little different; the names in the list stay the same.

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"

Spot the trapJoaquin

Joaquin says: “I don’t need to learn Git. I’ll just use GitHub.”

What happens if…

Check what you learned

Which of these is a Git feature, not a GitHub one?
Why choose “keep my email address private” on GitHub?
Which view shows, for each line of a file, the commit that last changed it?

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.

All sources for Simple Git