Technology

Git Explained: Save Points for Your Work

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.

PreMinuteAug 1, 2026 · 3 min read
Git Explained: Save Points for Your Work

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

Digital Arrest Scams: What the Supreme Court Just Ordered
Technology

Digital Arrest Scams: What the Supreme Court Just Ordered

India's Supreme Court has told WhatsApp and banks to detail how they will stop "digital arrest" fraud. Here is how the scam works and how to protect yourself.

PreMinuteNov 14, 2026 · 5 min read
India's CNAP Caller Name Rule: What Changes on Your Phone
Technology

India's CNAP Caller Name Rule: What Changes on Your Phone

From 1 November 2026, calls from unsaved numbers can show the caller's registered name on 4G and 5G networks. Here is what you will see, who is left out, and what to do.

PreMinuteNov 13, 2026 · 5 min read
How Encryption Works: From Plain Text to Secret Code
Technology

How Encryption Works: From Plain Text to Secret Code

Encryption scrambles your data so only the right key can read it. Learn how symmetric and public-key encryption work together, where HTTPS uses them, and what encryption cannot protect you from.

PreMinuteNov 13, 2026 · 5 min read

Keep reading

World Diabetes Day: Why India's 101 Million Cases Need Early Action
Health

World Diabetes Day: Why India's 101 Million Cases Need Early Action

World Diabetes Day falls on 14 November. This year's theme is early action. Here is what diabetes actually is, India's numbers, and the warning signs people miss.

PreMinuteNov 13, 2026 · 6 min read
VISTAR Scheme: India Is Rebuilding How It Counts Its Economy
Money

VISTAR Scheme: India Is Rebuilding How It Counts Its Economy

The Cabinet approved a ₹4,371 crore plan to make India's economic data AI-ready, with a new Economic Census. Here is what it covers and why it matters to you.

PreMinuteNov 12, 2026 · 4 min read
Desk Ergonomics: How to Set Up Your Workspace to Avoid Pain
Health

Desk Ergonomics: How to Set Up Your Workspace to Avoid Pain

A bad desk setup slowly causes neck, back and wrist pain. Learn the official chair, monitor and keyboard rules from OSHA and CCOHS, and how often to take breaks.

PreMinuteNov 12, 2026 · 5 min read