Technology

Git Explained: Save Points for Your Work

Aug 1, 2026 · 3 min read

Git remembers every version of your project so you can undo mistakes and work with others. Learn the four ideas and the six commands you will use every day.

Have you ever saved files as `report_final`, `report_final2`, and `report_final_REAL`? Git solves that problem for good. It is a tool, used by almost every software team, that records every change to your files so you can go back to any earlier version.

The idea in one sentence

Git is a time machine for your project. Each time you reach a good state, you take a snapshot, called a commit, with a short note about what changed.

Four words to know

Your first project, step by step

  1. Install Git

    Download it from the official Git website and install it. Check it with `git --version`.

  2. Set your name

    Run `git config --global user.name "Your Name"` and `git config --global user.email "you@example.com"`.

  3. Start tracking a folder

    In the project folder, run `git init`. Git now watches it.

  4. Choose what to save

    Run `git add .` to stage all current changes, or `git add filename` for one file.

  5. Take a snapshot

    Run `git commit -m "Add home page"`. Write messages that say what and why.

  6. Look at the history

    Run `git log --oneline` to see your commits.

Working with branches

To try a new idea safely:

  1. Create a branch

    `git switch -c new-idea`

  2. Work and commit as usual

    Your main branch is untouched.

  3. Go back when you want

    `git switch main`

  4. Merge the idea in when it works

    `git merge new-idea`

Sharing with others

What most people miss

Sources

More in Technology

Technology

India's Data Protection Law Explained: What Changes for You

India's DPDP Rules are being phased in. Learn your new rights over your personal data, what companies must now do, and the dates to watch, in plain language.

Oct 21, 2026 · 3 min read
Technology

UPI Safety Guide: How to Avoid the Most Common Payment Scams

UPI processed a record 24.51 billion transactions in August 2026. With that scale come scams. Learn the one rule that protects you most and the tricks to watch for.

Oct 20, 2026 · 3 min read
Technology

Passkeys Explained: The End of Passwords Is Closer Than You Think

Passkeys let you sign in with your fingerprint, face, or phone lock instead of a password, and they cannot be phished. Here is how they work and how to set one up.

Oct 18, 2026 · 3 min read