Git Foundations

Study Git Foundations with full lessons, revision notes and quick reference, across 33 lessons.

9 modules. 33 lessons. Self-paced.

Roles this course prepares you for

Course curriculum

No exam weights apply. Lessons follow practical prerequisites, from recording changes on your own to collaborating through a shared repository.

Every lesson is open to read. No account needed.

Start Here (3 lessons)
  1. How this course works (read now)

    • Describe what the course covers, what it excludes and how the three study views are used.
    • Explain why finishing lessons is not the same as demonstrating a Git skill.
  2. Install Git and check your setup (read now)

    • Install Git using the official route for Windows, macOS or Linux.
    • Confirm the installed version meets the course minimum and that the shell used for exercises is ready.
  3. Configure Git for your first repository (read now)

    • Set your commit identity, the default branch name and an editor Git can open.
    • Explain system, global and local scopes and find where a value comes from.
Record Your Work (6 lessons)
  1. How Git records work (read now)

    • Explain the working tree, staging area and repository, and how a change moves between them.
    • Describe a commit as a snapshot with an author, a message and a link to its parent.
  2. Create a repository (read now)

    • Create a repository whose first branch is main, and explain what the .git folder is for.
    • Read git status for a new repository and make its first commit.
  3. Stage and commit focused changes (read now)

    • Stage selected files or parts of a file so each commit holds one coherent change.
    • Write a commit message whose summary says what changed and whose body says why.
  4. Inspect history (read now)

    • Use git log and git show to find when and why a change was made.
    • Refer to commits by ID, by HEAD and by relative references such as HEAD~1.
  5. Compare changes with diff (read now)

    • Choose the git diff form that compares the working tree, staging area or two commits.
    • Read a diff hunk and explain each added and removed line.
  6. Ignore files and keep secrets out (read now)

    • Write .gitignore rules and confirm them with git check-ignore -v.
    • Stop tracking a committed file without deleting it from disk.
    • State the first response when a secret has been committed or pushed.
Undo Changes Safely (4 lessons)
  1. Discard and unstage changes (read now)

    • Discard uncommitted edits with git restore, knowing Git cannot bring them back.
    • Unstage a file with git restore --staged without losing the edit.
  2. Amend the last commit (read now)

    • Fix the message or content of the latest unpublished commit with git commit --amend.
    • Explain why amending a commit others already have causes problems.
  3. Revert a shared commit (read now)

    • Undo a published commit by recording a new commit with git revert.
    • Resolve a revert that conflicts with later changes.
  4. Move a branch with reset (read now)

    • Explain what --soft, --mixed and --hard do to the branch, the staging area and the working tree.
    • Choose restore, amend, revert or reset for a stated situation.
Branch and Merge (6 lessons)
  1. Branches and HEAD (read now)

    • Explain a branch as a movable name for a commit and HEAD as your current position.
    • Create and switch branches with git switch, and keep work made on a detached HEAD.
  2. Merge branches (read now)

    • Merge a branch and explain when Git fast-forwards and when it creates a merge commit.
    • Read the resulting history graph.
  3. Resolve merge conflicts (read now)

    • Read conflict markers and decide the correct combined content.
    • Complete or abort a conflicted merge and confirm no markers remain.
  4. Rename and delete branches (read now)

    • Rename a branch and delete merged branches safely.
    • Explain why Git refuses to delete an unmerged branch with -d.
  5. Set work aside with stash (read now)

    • Save unfinished work with git stash, including untracked files when needed, and restore it later.
    • Resolve a conflict when applying a stash.
  6. Copy a commit with cherry-pick (read now)

    • Apply one commit from another branch with git cherry-pick.
    • Resolve or abort a conflicting cherry-pick and explain when merging is the better choice.
Rebase Unpublished Work (3 lessons)
  1. Rebase onto an updated branch (read now)

    • Replay unpublished feature commits onto the latest main with git rebase.
    • Compare the history produced by rebase and by merge, and state when not to rebase.
  2. Resolve conflicts during a rebase (read now)

    • Continue, skip or abort a rebase that stops on a conflict.
    • Use git status during a rebase to see which commit is being replayed.
  3. Tidy commits before sharing (read now)

    • Squash, reword and reorder unpublished commits with interactive rebase.
    • Abort safely if the result is not what you intended.
Work With a Remote (6 lessons)
  1. Remotes and cloning (read now)

    • Create a local bare repository as a shared remote and clone it twice to act as two collaborators.
    • List remotes and explain origin and remote-tracking branches.
  2. Fetch and inspect incoming work (read now)

    • Download new commits with git fetch without changing your branch.
    • Compare your branch with its remote-tracking branch before integrating.
  3. Pull and integrate changes (read now)

    • Explain git pull as fetch followed by integration, and why it refuses to guess when branches have diverged.
    • Integrate diverged work by merging or rebasing, and set pull.rebase deliberately.
  4. Push and track an upstream branch (read now)

    • Push a branch and set its upstream with git push -u.
    • Diagnose a rejected push and resolve it by integrating, not by forcing.
  5. Mark versions with tags (read now)

    • Create annotated and lightweight tags and explain the difference.
    • Push tags and check out a tagged version.
  6. A feature-branch workflow (read now)

    • Work on a short-lived feature branch, keep it current with main and integrate it through the shared remote.
    • Prepare a change for review: small scope, clear history and a description of why.
Recover and Diagnose (2 lessons)
  1. Recover work with the reflog (read now)

    • Find an earlier position of HEAD or a branch in the reflog and restore lost commits with a new branch.
    • Explain what the reflog cannot recover and how long entries are kept by default.
  2. Diagnose common Git errors (read now)

    • Use the error message and git status to identify the cause of a common failure.
    • Choose a safe next step instead of a broad reset or a force push.
Final Challenge (1 lessons)
  1. Final challenge: fix and share a team change (read now)

    • Combine branching, conflict resolution, a safe undo and remote synchronisation in one bounded task.
    • Show the result with repository evidence and explain each decision.
Optional: Review on a Hosting Service (2 lessons)
  1. Optional: connect to a hosting service (read now)

    • Create a private repository on a hosting service and push to it using SSH or HTTPS.
    • Diagnose common authentication failures.
  2. Optional: open and update a pull request (read now)

    • Open a pull request from a feature branch, respond to review by pushing new commits and merge it.
    • Bring the merged result back to local main and delete the finished branch.

Study views

  • Full Course
  • Revision
  • Quick Reference

Who this is for

For people starting to use version control in development, operations or documentation work who want to understand what each Git command changes.

Before you begin

  • Comfortable running commands in a terminal and editing a plain-text file. No programming knowledge required.
  • A computer with Git 2.28 or later; Windows learners use Git Bash. The core course needs no hosting or cloud account; the optional GitHub module needs a free GitHub account.

What you will learn

  • Record focused commits and use history and diffs to explain what changed.
  • Choose a safe way to undo a change, and recover commits that seem lost.
  • Branch, merge, resolve conflicts and share work through a remote without overwriting anyone's work.

Content Author: Prajval Honnungar

Sources checked:

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.

Know what is included

Independent learning material from Vectametric. Not affiliated with or endorsed by the organisations behind the tools it teaches. Practice exams and projects are separate. Completing a course is not a professional certification.

Questions about courses

Are these video courses or reading courses?

The current courses use written lessons, examples and diagrams. Full Course, Revision and Cheat Sheet or Quick Reference views cover the same learning sequence at different levels of detail.

Which course should I start with?

Choose a Certification Course for a named exam, a Career Path Course for a role-led sequence, or a Skill Course for a focused subject. Read its level, prerequisites and curriculum before enrolling.

Do revision notes replace the full lessons?

No. Start with the full explanations, then use revision notes to refresh your understanding. Cheat sheets are concise study references, not a substitute for learning or permission to use notes during an official exam.

Are practice exams and projects included?

No. Course access, practice-exam bundles and project access are separate. An official certification, exam booking or voucher is not included.

How long do I have access?

The course page and checkout show the current online access period and price, including free enrollment where offered. Access starts when enrollment is confirmed and does not auto-renew.

Can I read lessons before enrolling?

Yes. Each course opens its first lessons to read without an account, and some courses are open in full. The course curriculum marks the lessons you can read now. Course access adds the remaining lessons, the Revision and Cheat Sheet or Quick Reference views, saved progress, bookmarks and personal notes.

Review the Terms and No-Refund Policy before confirming access. All sales are final; Vectametric does not offer refunds.

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