🎓 A1Learner
🔍
0 of 50 lessons completed

Home / Git

Git

Git from a first repository to branches, merges, conflicts, GitHub, and tags: staging, commits, history, remotes, pull requests, undoing, stashing, and a full workflow. Every command is run for real and its true terminal output shown.

Git is the tool that saves every version of your work. In fifty short lessons you go from a first repository to branches, merges, conflicts, GitHub, and tags, with every command run for real and its true output shown.

Start learning ❯❯50 lessons · 12 topics · 0/50 completed

Course contents

Work top to bottom — the sidebar is the course. Topics later in the list assume the ones before them.

Getting Started

Start: What Is Version Control ❯

Staging and Committing

Start: Check Status ❯

Viewing History

Start: View the Log ❯

Branching

Start: What Is a Branch ❯

Merging

Start: Merge a Branch ❯

Resolving Conflicts

Start: What Is a Conflict ❯

Remotes and GitHub

Start: What Is a Remote ❯

Undoing Changes

Start: Undo Unstaged Changes ❯

Stashing

Start: Stash Your Work ❯

Tags

Start: Create a Tag ❯

Ignoring Files

Start: Ignore Files with .gitignore ❯

Reference and Project

Start: Git Commands Reference ❯

Learn Git

Git saves snapshots of your files. Each snapshot records the whole project at one moment, with a message that says what changed. When a change breaks something, you can go back to any snapshot. When two people change the same file, Git shows both versions and asks you to choose.

Git has lasted because it solves a problem every team has. Almost every software team uses Git, and GitHub hosts the work of millions of them. The ideas it teaches — snapshots, branches, merges, and reviews — carry into every project you will ever join. Learning Git first makes the next tool easier, whichever one it is.

The course runs fifty lessons in twelve groups. Setup, config, and a first repository open it, then staging, commits, and history. Branching, merging, and conflicts follow, before remotes, GitHub, and pull requests. Undoing, stashing, tags, and ignoring files finish the main run, capped by a full workflow from init to tag.

What you will learn

The fifty lessons, in the order you meet them:

  • Save snapshots of your work and read them back
  • Stage changes on purpose instead of by accident
  • Write commit messages that help your future self
  • Fix the last commit without making a second one
  • Read the log, open a snapshot, and compare two states
  • Name the snapshot that last changed any line
  • Branch for each idea and switch between lines of work
  • Merge branches, fast-forward, rebase, and cherry-pick
  • Resolve a merge conflict and know when to abort instead
  • Clone a repository and push your work to GitHub
  • Pull new work and fetch it first when you want to look
  • Open a pull request and review work on GitHub
  • Undo unstaged changes, unstage a file, and undo a commit
  • Revert a snapshot safely and recover lost work with reflog
  • Stash unfinished work and finish it on its own branch
  • Mark versions with tags and share them with a remote
  • Hide secrets and logs with gitignore patterns
  • Clear scratch files safely and shorten commands with aliases
  • Run a full workflow from init to tag on your own

Who this Git course is for

This course assumes no earlier coding. The first lessons show what version control is, before you type a single Git command, and every new term arrives inside the example that needs it. Steady practice matters more than speed.

Lesson time adds up to three hours and thirty-one minutes. Merges and rebases take the longest to feel easy, which is normal. Reading those lessons twice helps more than reading any other lesson twice.

Students heading toward their first team project will find the branch and pull request lessons familiar. Hobbyists who lost work once will find the safety net they wanted. Readers coming from another version control tool meet the Git way of each idea spelled out rather than assumed.

How this course works

Git runs in a terminal, not in a web page, so this course shows real terminal sessions instead of a runner. Every command in every lesson was run for real, and the output shown is the output it printed. Nothing is invented. Where a command prints nothing, the lesson says so.

Every lesson ends with a worked session and one question to check the idea. The order is fixed because merging makes little sense before branching lands, and branching makes little sense before committing lands. Progress stays in this browser, on the device you used. Nothing asks you to sign up or pay.

Frequently asked questions

Does this course teach Git or GitHub?

Both, in order. The first thirty lessons teach Git itself: snapshots, branches, merges, and undoing. The remote lessons then teach GitHub: pushing, pulling, cloning, and pull requests. GitHub is the website that hosts repositories. Git is the tool that makes them.

What must be installed before I start?

A text editor and Git are all you need. The install lesson covers Mac, Linux, and Windows, and the version check right after it proves the install worked.

How long does the course take?

Fifty lessons, three hours and thirty-one minutes all told. Working through the commands yourself takes about twice as long. The closing workflow is counted inside that total.

What is the hardest part of Git?

Merges and rebases ask the most of a beginner. The course keeps them back until branching and committing feel familiar. Conflicts get three lessons of their own, since a merge that stops halfway is the most common first surprise.

What will I be able to do afterwards?

Keep a project under version control from its first day: branch for each idea, merge cleanly, resolve conflicts, undo mistakes, share work on GitHub, and review it with pull requests. The closing workflow runs the whole loop once, from init to tag.

Is the course free?

Yes. Every one of the fifty lessons is free to read. No account exists on this site, so there is nothing to sign up for and nothing to pay for.

Next steps

  • Bash Beginner ❯ — The terminal companion: the shell Git runs in, taught from first commands to small scripts.
  • Python Beginner ❯ — A first language to keep under version control, from variables to files and functions.
  • JavaScript Beginner ❯ — A first language for the web, from variables to the DOM, ready to commit lesson by lesson.