RANIARANIA Academy

Git Fundamentals — Repositories, Commits & History

Learn to version a real project with Git from the ground up — install and configure the tool, understand the working tree, staging area and repository, and record clean commits. You will finish able to initialise a repo, stage and commit changes, read history with log, show and diff, ignore the right files, and safely undo mistakes.

Watch the free preview

Why version control, and why Git — free to watch, no account needed.

Git & GitHub BEGINNER · 150 min · Certificate on completion · 3 CPD points

What you'll learn

  • Version a project with Git from init through committed history
  • Explain the three areas — working tree, staging area and repository — and how changes move between them
  • Record clean, atomic commits with well-written commit messages
  • Inspect a project's history using log, show and diff
  • Undo changes safely with restore, reset, revert and amend

Syllabus

Why Version Control, and Getting Set Up
Why version control, and why GitFree preview15 min
Installing and configuring Git15 min
The Three Areas and Your First Commits
The three areas — working tree, staging, repository15 min
init, status, add, commit and good messages15 min
Reading Your Project's History
Inspecting history with log, show and diff15 min
Ignoring files with .gitignore15 min
Undoing Changes Safely
Undoing changes — restore, reset, revert, amend15 min
Putting it together — a clean versioning workflow15 min
Lab — 10 Exercises & Solutions
Exercises 1–515 min
Exercises 6–1015 min