Git Foundations / Start Here

How this course works

Lesson 1 of 33. Open to read. No account needed.

What This Course Is For

When several versions of a file pile up as report-final, report-final-2 and report-really-final, nobody can tell which change came from whom, or why. Git solves this by recording a project's history: each recorded change carries the author, the time, a description and a link to the state before it. You can compare any two points, return to an earlier one and combine work from several people.

This course teaches you to use Git for everyday work. You will record changes, read history, undo mistakes safely, develop on branches, combine branches, resolve conflicts and share work through a shared repository; each of these is explained when you reach it. The aim is not to memorise commands. It is to predict what a command will change before you run it, check the result afterwards and recover when something goes wrong.

You need to be able to run a command in a terminal, move between folders and edit a plain-text file. You do not need to know how to program, and you do not need a hosting account. The next lesson checks the terminal skills the exercises use and explains the five commands they rely on.

How the Lessons Build on Each Other

The course path: Start Here, Record Your Work, Undo Changes Safely, Branch and Merge, Rebase Unpublished Work, Work With a Remote, Recover and Diagnose, then the Final Challenge. An optional hosting-service module branches off after Work With a Remote and is not needed for the Final Challenge.

Read the diagram from top to bottom. Each solid arrow means the next module uses what the previous one taught, so the order matters. Undoing changes comes after recording them because you cannot safely undo something you cannot yet inspect. Rebasing comes after merging because both use the same skills for resolving conflicts. Working with a remote comes late because sharing work combines everything before it.

The Final Challenge is a single task that combines the core skills without step-by-step instructions. The dashed arrow leads to an optional module about reviewing changes on a hosting service such as GitHub. It needs a free account and an internet connection, so it sits outside the core path. You can complete the Final Challenge without it.

Three Ways to Study a Lesson

Every lesson has three views of the same material:

  • Full Course teaches the topic: the problem it solves, how Git behaves, a worked example and, in practical lessons, an exercise you run yourself.
  • Revision helps you recall the reasoning after you have studied the Full Course: the distinctions, the decisions and the common mistakes.
  • Quick Reference lists the commands and decisions in a compact form, with the warnings that apply to them.

Start with Full Course. The shorter views assume you have already worked through it; they are for returning to a topic, not for skipping it.

How the Practice Works

Practical lessons end with an exercise that runs entirely on your computer. Everything happens inside a practice folder called git-practice in your home folder, with a separate subfolder for each exercise. Setup commands in the lesson create that subfolder and give everyone the same starting point, so you never need to download files.

The exercises cannot affect your other projects: their commands only change files inside their own folder. The exception is the configuration lesson, which sets your Git name, email address, default branch name and editor for your whole user account. That lesson explains each setting before you change it.

Output shown in the lessons is marked illustrative. The identifiers Git gives each recorded change, along with dates, names and folder paths, will differ on your computer. Each lesson says which parts to compare and which parts will vary. Read a command group's explanation before running it, then copy the whole group rather than retyping it.

If an exercise goes wrong, you can always start it again: remove that exercise's folder and run its setup commands once more. Each exercise ends with a cleanup step that removes only its own folder, after you confirm you are in the right place. The module on working with a remote is the one exception: its lessons share one practice set, which each lesson rebuilds at its start and the module's last lesson removes.

Checking Your Own Work

Each exercise says how to check the result, usually by reading git status or git log and comparing specific details. A command finishing without an error is not enough: the check is whether the repository ended up in the state the exercise describes.

Questions have a Your answer box. Write your answer before opening the reasoning; comparing afterwards shows what you actually understood.

There is no automatic grading. Marking a lesson complete records your reading progress; it does not prove you can do the task. The Final Challenge is where you show that you can combine the skills without being guided through them.

What the Course Leaves Out

The course stays with everyday command-line Git. It does not cover Git's internal storage format beyond the model you need for daily work, submodules, large-file storage, hooks, commit signing, graphical Git clients, automated build pipelines, or tools that remove data from history that has already been shared. Hosting services appear only in the optional module.

Check Your Understanding

A friend reads every lesson without running a single exercise and marks them all complete. They say this proves they can resolve a merge conflict.

  1. What does marking a lesson complete actually record?
  2. What in the course would show whether they can resolve a conflict?
  3. Which lessons can be studied without a terminal, and what does the optional module need that the rest of the course does not?

Answer and Reasoning

  1. Completion records reading progress. It is the learner's own mark; nothing checks it.
  2. Running the exercises and meeting their stated checks is evidence of the steps practised. The Final Challenge is stronger evidence because it combines skills without step-by-step instructions. Even then, the checks are self-assessed against the stated criteria.
  3. Conceptual lessons, such as this one and the lesson on how Git records work, need only reading. Practical lessons need a terminal and Git. The optional hosting module also needs a free hosting account and an internet connection.

Study this course with an account

Course access adds revision notes, the Quick Reference, saved progress, bookmarks and your own notes.

INR 99 plus 18% GST. 90 days of online access. No auto-renewal.

See course access

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy