
How to compare two files in the terminal: diff, cmp, word-level and folder comparisons, and what to do when diff flags lines that look identical.

A git worktree is a second working folder on the same project history. Two branches open at once, no switching and no stashing half-finished work.

A diff isn't a report of what changed — it's a recipe for turning the old version into the new one. Learn to read minuses, pluses and those @@ marks in five minutes.

Why .gitignore isn't working: usually the file is already tracked, so the rule has no effect. Three real causes, a one-command check, and the fixes.

What a fork is in plain words: a copy of someone else's repository inside your GitHub account. How a fork differs from a clone, and why it quietly goes stale.

A monorepo isn't “dump all the code in one folder”. Here's why teams keep a site, an app and a bot in one repository — and when you don't need it.

Merge joins branches, rebase rewrites them — and that decides whether Git rejects your push. A criteria table and a straight answer on which to use.

A commit message isn't a formality — it's a letter to future you and context for AI agents. The two-part format, a template, and good-vs-bad examples.

Git is a program on your laptop, GitHub is a website. Here's the difference between Git and GitHub in plain terms: what each one does and why you need both.

A Git commit isn't «save this file» — it's a snapshot of your whole project with a note on why. What a commit is made of, and why it's so hard to lose.

CONFLICT in your terminal isn't a breakage — it's a question from Git. Here's why a merge conflict happens, and how to resolve it step by step without breaking your code.

A Git branch isn't a copy of your code folder — it's a lightweight bookmark to one commit. Here's what a branch is, why you need it, and why it's instant.

Messed up a commit? Git almost never deletes anything for good. Here's how to undo a Git commit step by step — for both local and already-pushed commits.

"! [rejected] fetch first" isn't a break — it's git protecting someone's work. The 3 real causes of a rejected git push and how to fix each.

A repository is your project plus its whole history of changes. What a repo is, how it differs from GitHub, and why there's a hidden .git folder.

Git stores not the latest version of your code but every step of it — and works offline. Here's what Git is in plain words, and why you need it.

You don't need all of Git. Here are 7 Git commands every beginner needs — from init to undo — that you'll actually use in your first month, with the catches.

A pull request is a proposed change, reviewed before it merges. Here's what a pull request is, why you want one even solo, and how to use it.

Git isn't cloud storage for code — it's a time machine with save points. A step-by-step on how to use Git as a beginner: init, commit, push — five commands.