Tech
    Programming
    Git
    Version Control
    GoldenTech

    Understanding Git & Version Control

    Imagine you are writing a book called “The Magical Kenya”. You have been working on it for months and things start getting complicated.

    GTC Admin
    March 31, 2026
    0 views
    5 min read

    Imagine you are writing a book called “The Magical Kenya”. You have been working on it for months and things start getting complicated.

    Git is like a Time Machine and a Collaboration Portal for that book. Here is how Git would help:

    1. Instead of saving your file normally, you can use Git to create a “Save Point” normally called a “commit” in Git. Example, when you finish typing each chapter you commit it, you finish chapter 1 and commit it, same to chapter 2, 3, 4… If you realize chapter 3 is a disaster and ruins the plot, you don’t have to hit “undo” a thousand times. You will simply tell Git to revert the book back to chapter 2 “Save Point”.

    2. Let’s say you want the book to have two different endings, one where the hero wins and another where the hero joins the villain. In this case you will create a branch called villain-ending. Your original “Main” book stays exactly as it was, you can write the entire new ending in the new branch without touching the original story. If you love the new ending you can merge it to the main book, if you don’t you just delete the branch leaving the original book untouched.

    3. If you decide to hire an editor, without Git you would have to email files back and forth which might end up with confusing names like book_v2_final_final_edits.docx. With Git both of you will be able to just “pull” the changes made on whatever version. If you both changed the same sentence, Git flags that as a conflict showing you both versions and letting you choose which one to keep.

    Git is a Distributed Version Control System(VCS) that tracks every single change you make to your project. Think of it as a “save system” that creates a detailed history of your work rather than just overwriting your old files.

    What Does Git Do For You?

    Time Machine(Version History): Git takes snapshots(called commits) of your project. If you make a major mistake, you can “teleport” back to a previous working version.

    • Time Machine(Version History): Git takes snapshots(called commits) of your project. If you make a major mistake, you can “teleport” back to a previous working version.

    • Parallel Universes(Branching): You can create a “branch” to try out a new idea without affecting your main work. If the idea works, you merge it back and if it fails you just delete the branch.

    • Teamwork(Collaboration): It allows multiple people to work on the same files simultaneously. Git identifies if two people changed the same line and helps you resolve the “merge conflict”.

    • Safety(Backup): Because Git is distributed, every team member has a complete copy of the project and its entire history on their own computer. If the main server crashes, any developer’s copy can be used to restore it.

    Git vs Github

    • Git is the tool(the engine) that runs on your local computer to track changes.
    • Github is a website(the garage) that hosts your Git projects online so you can share them with others.

    What is Git?

    Git is a version control system.

    That means it helps you:

    • Track changes in your code over time
    • Go back to previous versions if something breaks
    • Work on different features without messing up your main project
    • Collaborate with others without overwriting each other’s work

    What is GitHub?

    GitHub is a cloud platform that hosts Git repositories.

    It adds:

    • Online storage for your code
    • Collaboration tools (teams, pull requests, code reviews)
    • Backup (your code is safe even if your laptop dies)
    • Visibility (you can share your work publicly or privately)

    Think of GitHub as:

    Google Drive, but specifically for Git projects with developer tools built in.

    Key Differences

    FeatureGitGitHub
    TypeTool (version control system)Platform (hosting service)
    Runs whereLocal machineCloud (web-based)
    Internet NeededNoYes
    PurposeTrack code changesShare & collaborate on code

    How They Work Together

    Git and GitHub are best used together.

    Typical workflow:

    • You write code on your computer
    • Use Git to track changes git commit
    • Push your code to GitHub git push
    • Others can review, comment, or contribute

    Why This Matters

    If you are building products:

    • Git helps you stay organized and safe
    • GitHub helps you collaborate and showcase your work
    • Employers and clients expect you to understand both

    If you ignore Git, you will eventually lose work or break things without recovery. It’s not optional if you want to grow as a developer.

    Final Thought

    Start simple:

    • Learn basic Git commands: init, add, commit, push, pull
    • Create a GitHub account or use GitHub alternatives such as GitLab, Bitbucket e.t.c
    • Push your first project

    You don’t need to master everything at once, just start using it daily.

    About GTC Admin

    Instructor, software engineer, and content creator at GoldenTech Computer College, sharing insights on technology education and career development.

    Explore More Articles

    Discover more insights about technology education and career development