Udemy

Free Git Version Control Course: Branch, Merge, and Undo Changes

Sooner or later, you will need to answer a question about a project that its current files cannot answer: what changed, when did it change, and which earlier version still worked? Git gives you a way to answer those questions. The difference becomes clear as soon as you can inspect two versions of one file and point to the change that caused a problem.

Free learning access

Listed as Free on Udemy when checked on 6 November 2026. No coupon or subscription trial is required for the listed lessons. Enrollment needs a Udemy account; availability can change.

About this course

Sooner or later, you will need to answer a question about a project that its current files cannot answer: what changed, when did it change, and which earlier version still worked? Git gives you a way to answer those questions. The difference becomes clear as soon as you can inspect two versions of one file and point to the change that caused a problem.

Maksym Rudnyi’s free introduction starts with the purpose of version control and then shows how Git tracks changes locally and works with a remote repository on GitHub. It goes further into what Git stores, what happens when branches meet, and how to undo changes. The 17 videos run for about 114 minutes, and the listing includes a short bonus article.

Official course GIT for beginners
Created by Maksym Rudnyi
Platform Udemy
Language English
Level Beginner
Listed duration 114 minutes; 18 lectures across 6 sections
Completion terms Not included with a new free enrollment

What you’ll learn

Follow a change from a working file through the staging area and into a commit, then see how a clone works with a remote repository. The course introduces graphical views of history, the objects inside a repository, and common ways to combine or undo changes. A section on branches covers merge conflicts, rebase, and cherry-pick.

Skills you’ll gain

  • Git staging
  • Commit history
  • Remote repositories
  • Git ignore rules
  • Branch merging
  • Reverting commits

Read history before changing it

Try a small exercise of your own with a folder containing a short project README. Commit an initial version. Change two lines in the file and check the diff before staging anything. Stage the file, make one more edit, and compare the staged and unstaged changes. Seeing both at once helps explain why a commit may contain a different version of a file from the one you currently have open.

Open the history after making a second commit with a useful message. Look for the earlier version and predict which lines changed before you compare the snapshots. The course also introduces Git GUI and gitk, which give you another way to inspect changes and follow the links between commits. Its examples date from 2020, so the GitHub screens and default branch name may differ from what you see today.

Choose what you mean by undo

Start by deciding where the unwanted change lives. An edit you have not committed calls for a different action from a commit already shared with teammates. Revert records a new commit that counters an earlier change, keeping the existing history. Reset can move the current branch to another commit, with different effects on staging and files depending on the mode. A hard reset can discard local work. Try it only on a disposable copy while you learn.

The lesson on ignore rules is a useful companion. Add a pattern for a new local log file and check the status before and after. Then try it with a file that is already tracked. The rule can keep new matching files out of the staging list; it does not stop Git tracking a file already in the repository.

Practice a conflict in a small repository

In a disposable repository, make two branches that change the same sentence in different ways. Merge the branches and use the conflict to decide what the final sentence should say. Read the final diff before committing your resolution. Keep the first example small enough that you can check the entire file and explain why the result is right.

Once you can read that branch history, compare the purpose of a merge with rebase and cherry-pick. A rebase replays commits on a different base, which changes their identities; practice on local work and coordinate before rewriting any shared branch. Cherry-pick applies the changes from a selected commit without bringing over the rest of its branch. Try each in a separate copy so you can see how the resulting history differs.

Give the final commit a message that explains why you chose the resolution. A week later, open that history without looking at your notes. If the message and diff tell you enough to reconstruct the decision, you have practiced a habit that pays off in both solo and team projects.

Enroll Now ↗

Related courses for your next step

Compare course focus, level and study time
Compare the published course outlines. A lower level is a preparation option, not a required prerequisite.
Course Level Focus Study time
This course — Free Git Version Control Course: Branch, Merge, and Undo Changes Beginner Git staging · Commit history · Remote repositories 114 minutes (Udemy listing)
Free Git and GitHub Course: Follow Changes from Commit to Code Review Beginner Git staging and commits · Repository history · Branch management 60 minutes (Udemy listing)
Free Bash Scripting Course: Write Your First Linux Script Beginner Script setup · Interpreter selection · Shell builtins 44 minutes (Udemy listing)

Frequently asked questions

Do I need prior Git experience?

The course is aimed at beginners. It lists basic computer skills and the ability to install software as prerequisites.

Do I need GitHub to practice?

You can practice commits, branches, and merges in a local repository. Use GitHub when you want to follow the lessons on a hosted remote.

Will an ignore rule remove a file from history?

No. Ignore patterns apply to untracked files. Adding a rule does not erase an earlier commit or remove a tracked file.

Share this course

Questions & discussion

Share a useful question or correction. Comments appear after moderation. Please avoid personal or sensitive information.

Add to the discussion

Your email address will not be published. Required fields are marked *