AI Learning Hub › Learn AI › Self-Paced Courses › GitHub Without the Jargon › Look Around Without Breaking Anything
Module 2 ยท Beginner
Look Around Without Breaking Anything
Move between folders and files, read a path, find history, and tell navigation apart from the controls that begin an action.
By the end
- Navigate from a repository root into a folder and file
- Explain what a path tells you
- Use a README to orient yourself
- Recognize the repository’s default branch
- Find basic history without changing the repository
- Distinguish navigation controls from controls that begin an action
- Return to the repository root when you get lost
How do I know what I can safely explore?
Module 1 answered what am I looking at? This module answers the question that usually comes next, and often stops people from clicking anything at all: how can I explore a repository without accidentally changing it?
A repository page puts two different kinds of thing side by side. Some of what you see is information you can inspect — files, folders, history, the README. Some of it is a control that begins or performs an action — editing, adding, forking, starring.
The useful skill is telling the two apart rather than avoiding every control.
Looking at a repository and changing a repository are different modes.
This module is browser-only. Nothing in it installs software, opens a terminal, edits a file, or creates anything.
Three words to learn
README
A file, often named README.md, that provides information about a project or repository.
Path
The location of a file or folder inside a repository, shown by the sequence of folders leading to it.
Default branch
The branch GitHub shows when someone visits the repository unless they choose another branch.
Beginner versions again. The third one contains a word this course has not taught: branch. That is unavoidable, and it does not need solving today. We will learn what branches do in Module 4. For now, the default branch is simply the version GitHub shows you first.
Still not needed: tree, blob, HEAD, checkout, permalink, blame, push, pull, and fork. Some of them appear on screen in this module, and where they do, the page says so and moves on.
Find home base first
The examples below use a second public repository: GitHub’s own site-policy repository, which holds GitHub’s terms of service, privacy statements, and acceptable use policies as ordinary Markdown documents. It is public, it is GitHub’s, and — unusually for a teaching example — every file in it is a legal document rather than code.
When you land on a repository, the repository root is the top of the project. You can tell you are there because you can see all of these at once:
- the owner and repository name together, as
github / site-policy; - a list of the project’s top-level folders and files;
- a README displayed below that list; and
- a control showing which version you are looking at — here, main.
The repository root is your home base.
This matters more than it sounds. It is genuinely easy to click three folders deep, lose the thread, and conclude that GitHub is incomprehensible, when in fact you are just somewhere specific and cannot see the map.
If you get lost, do not try to decode where you are. Click the repository name to go back to the root and start again. That is always available, and it never changes anything.
Folders take you somewhere. Files show you something.
A folder contains other items. Clicking it moves you to a new list.
A file contains project material. Clicking it shows you that material.
GitHub distinguishes them visually: folders carry a folder icon and sort to the top of the list; files carry a document icon below them. In the site-policy repository’s root, the observed listing was:
- Folders:
.github,Policies - Files:
.gitignore,CODE_OF_CONDUCT.md,CONTRIBUTING.md,LICENSE.md,README.md
Seven items. That is the whole top level of a repository containing GitHub’s complete published policy set — a good reminder that a small root does not mean a small project.
One vocabulary note, then we move on. GitHub and Git documentation often say directory where many people would simply say folder. They mean the same thing here. This course says folder, and you do not need to learn directory as a term.
The path tells you where you are
Open Policies, then github-terms inside it, then a file, and you arrive at a real document by way of a real path:
Policies/github-terms/
github-educational-use-agreement.md
One path. It is shown on two lines here so that it fits on a narrow screen; on GitHub it runs along a single line.
Read left to right:
Policiesis a folder;github-termsis another folder inside it; andgithub-educational-use-agreement.mdis the file — GitHub’s Educational Use Agreement, in full.
A path is directions inside the project.
Each slash means “and then inside that.” Nothing more complicated is going on.
Getting back out
GitHub shows the folders above the file so you can move back through the project. On the file above, the observed interface displayed each part of the path across the top of the page — site-policy, Policies, github-terms, then the file’s own name — with everything except the file itself being a link. Clicking Policies takes you back one level; clicking site-policy takes you home.
Inside a folder listing, GitHub also showed a row at the top of the list written as two dots, .., which goes up one level. And once you move below the root, a Files panel appears down the left side with the folder structure as a tree you can expand.
Three different ways up, none of which change anything. Use whichever you notice first. Your browser’s own back button works too, and is often the fastest.
Observed on GitHub
Verified: 18 September 2026.
The repository is github/site-policy, public, owned by GitHub. The screenshot shows one file three levels below the root, so that the path, the folder tree, the history control, and the file’s own toolbar can be seen together — which is the whole of what this module teaches.
GitHub’s interface changes over time, and not every account sees exactly the same controls: some depend on your permissions on that repository, on your plan, or on features being switched on. If your screen differs from this picture, your screen is right.
Read before you wander
Module 1 introduced the README informally. Here it becomes vocabulary, because it is the single most efficient thing you can do when you land somewhere unfamiliar.
GitHub surfaces a README automatically to repository visitors when the file sits in one of a few expected places, which is why it appears as a formatted panel below the file list rather than as one more row to open. A README often tells you:
- what the repository is;
- why it exists;
- how it is organized;
- how to use it; and
- where to find more information.
The site-policy README earns its place on the third of those. Two sentences in, it explains that the repository holds GitHub’s policies “open-sourced for your use and inspiration” — and then warns that it “may not reflect the exact policies that are live on GitHub because this site is updated separately from the Help site.” That is orientation you would not get from the file names, and it changes how much weight you would put on what you find. A README is orientation rather than a guarantee.
A README may be incomplete, stale, absent altogether, or written for people who already contribute rather than for someone arriving for the first time. Read it first and believe it provisionally.
GitHub has to show you one version first
Look again at the control reading main. The site-policy repository currently opens on main — and beside it, the observed interface reported 50 Branches.
So there are fifty versions of this project available, and GitHub had to pick one to show you. The one it picks is the default branch. GitHub’s documentation puts it plainly: the default branch is “the branch that GitHub displays when anyone visits your repository.”
Opening that control — which is a menu, and changes nothing by being opened — showed a panel headed Switch branches/tags, a search box, tabs for Branches and Tags, and a list in which main carried a checkmark and a small badge reading default. GitHub labels it for you.
Do not assume the name. GitHub currently names the default branch main for new repositories by default, but existing repositories may use another name. This is not hypothetical: GitHub’s own choosealicense.com repository opens on a branch called gh-pages, observed on the same day as everything else here. Read the control; do not predict it.
What happens if you choose a different one? Choosing another branch changes which version of the repository GitHub is showing you. It does not by itself rewrite the repository. You are changing your view, not the project. How branches actually work, and why a project would want fifty of them, is Module 4.
Looking backward is still looking
Every folder listing and every file in the observed interface carried a History button. Opening it on the Educational Use Agreement produced a page headed Commits, with a line reading History for site-policy / Policies / github-terms / github-educational-use-agreement.md on main, filters for All users and All time, and the changes grouped by date.
Each entry showed exactly the four things Module 1 said a commit can tell you:
What you can read off it
- the commit message, such as Update section 3.2 of Education Use Agreement;
- who recorded it;
- the date it was recorded; and
- which file or files it touched.
What is on screen but not yet yours
- a short code beside each entry;
- a Blame tab on the file itself; and
- icons for viewing the project as it stood at that moment.
All real, all deferred. None of them is needed to read a history.
For a law library, that history is the interesting part. You can see that this agreement was edited in June 2024 under the message Update section 3.2 of Education Use Agreement, and read the version that existed before it. A document with a public revision history is a different kind of source from a document without one. Opening history does not create new history.
Some controls show you things. Some start doing things.
This is the center of the module. Below are controls actually visible in the observed interface, sorted by what they do.
Navigation and inspection
- the repository name;
- a folder;
- a file;
- the README panel;
- History;
- the branch menu;
- Preview, Code, and Raw; and
- the repository tabs.
These show you information that already exists.
Begins or performs an action
- Add file;
- the pencil edit control;
- Fork;
- Star;
- Watch; and
- creating an issue.
These do something beyond showing you what is there.
These controls are not “bad.” They simply are not neutral browsing.
Three of them deserve a sentence each, because the nuance is where beginners get anxious:
- Add file, and the pencil
- Opening the editor does not necessarily change the repository immediately, but it starts a workflow that can lead to a recorded change. You would have more steps to take before anything was recorded. Module 3 walks that path deliberately.
- Star and Watch
- These affect the signed-in user’s GitHub account state even though they do not edit repository files. Starring is a public signal from your account; watching changes what GitHub notifies you about. Neither touches the project’s contents.
- Fork
- It begins creating another repository relationship — a copy of the project associated with another account. That is not simple browsing, and it is not something to try in order to see what happens. Later modules cover it properly.
Opening a file is not a commit
Say this one plainly, because it is the fear that keeps people reading GitHub in a screenshot someone else sent them rather than opening it themselves.
None of these creates a commit:
- opening a repository;
- opening a folder;
- opening a file;
- reading the README; or
- viewing commit history.
A recorded repository change requires additional action — deliberate, multi-step, and visible while you are doing it. Module 3 will show that process from the beginning.
This is not a promise that every click anywhere on GitHub is consequence-free. Some controls do things, and the previous section listed the ones you will meet first. The claim is narrower and more useful: the ordinary business of looking around does not alter the project.
Inspection and modification are different activities.
Try it without changing anything
Eight steps, all read-only. Use github/site-policy or any public repository that has at least one folder.
- Open the repository root. Confirm you can see the owner and name, a file list, and a README.
- Find the README. Read enough of it to say in one sentence what the project is.
- Identify the default branch. Read the branch control. Do not change it.
- Open one folder. Notice that the page now lists that folder’s contents instead.
- Open one file inside it. Any file. You do not need to understand it.
- Identify that file’s path. Write it out, folder by folder, ending in the file name.
- Find its history. Use the History control and read one commit message and its date.
- Return to the root. Click the repository name.
Nothing here changes the repository. This activity uses a public repository and requires no repository changes. GitHub may show somewhat different controls depending on whether you are signed in.
Am I looking or starting an action?
Sort these eight controls into two groups before reading on. They are drawn from the interface observed above, described generically because the exact labels move.
README.md
docs/
commit / history link
branch selector
Add file
edit control
Star
Fork
Which of these show you existing information, and which begin or perform an action?
One possible review
Inspect and navigate
README.md— opens information already in the repository.docs/— moves you into part of the repository.- commit / history link — inspects recorded project history.
- branch selector — chooses which existing version GitHub shows you.
Begins or performs an action
Add file— begins a workflow for adding repository content.- edit control — begins an editing workflow.
Star— changes something about your signed-in GitHub account’s relationship to the repository.Fork— begins creation of a related repository under another account or organization.
The branch selector is the one worth arguing about, and the argument is instructive: it changes what you see, which feels like doing something. It does not change the repository. Changing your view is still looking.
Note also what is not claimed about Add file and the edit control. Opening an editor does not by itself record anything. They belong in the second group because they start a process that can, not because a single click commits you.
“Action” here means the control does more than show you existing information, which is not the same as dangerous.
One more path, and its limits
A fictional path this time. What can you say with confidence?
research-guide/assets/images/logo.png
What the path supports, and what it does not
What you can say:
research-guideis the repository in this example;assetsis a folder inside it;imagesis a folder insideassets; andlogo.pngis the file, and its extension says it is an image.
What you cannot say:
- what the image looks like;
- whether it is actually used anywhere in the project;
- whether it is current; or
- why it exists at all.
A path is reliable about structure and silent about content. That is the same distinction Module 1 drew about file names, and it is worth having twice:
Names give you clues; opening things gives you evidence.
And the tabs you have not been told about? GitHub may show features this course has not introduced yet, including Agents. You do not need to understand every tab in order to navigate a repository.
What to notice
When exploring a repository, keep three questions running.
Where am I?
Repository root, folder, or file?
Which version am I looking at?
Usually the default branch, unless you selected another.
Am I inspecting or acting?
Is this control showing existing information, or beginning something that changes state?
None of the three needs a technical answer. They need an honest one, and asking them is most of what careful navigation is. You can learn the shape and history of a project before you change it.
Before you continue
You are ready for Module 3 if you can:
- return to a repository root;
- distinguish a file from a folder;
- read a simple repository path;
- explain what a README is for;
- identify the default branch;
- inspect basic history;
- distinguish ordinary navigation from controls that begin actions; and
- explain why opening a file is not the same thing as committing a change.