Tag

#git

19articles
GuidesNov 16, 2026

How to compare two files — and why diff says every line is different

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.

6 min read
BasicsSep 21, 2026

What is a git worktree — and why keep a second folder of the same project

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.

5 min read
BasicsSep 19, 2026

What is a diff — and why AI shows you minuses and pluses instead of the finished file

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.

5 min read
GuidesAug 8, 2026

Why .gitignore isn't working — and why .env still ended up on GitHub

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.

6 min read
BasicsAug 8, 2026

What is a fork on GitHub — and how it differs from a clone

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.

5 min read
GuidesJul 28, 2026

What is a monorepo — and when one repository beats three

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.

5 min read
GuidesJul 25, 2026

Merge or rebase — which one should a beginner pick

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.

5 min read
GuidesJul 22, 2026

How to write a Git commit message — for future you and for AI

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.

5 min read
GuidesJul 18, 2026

Git vs GitHub — why they're not the same thing at all

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.

5 min read
BasicsJul 15, 2026

What is a Git commit — why it's a snapshot of the whole project, not a file save

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.

5 min read
GuidesJul 13, 2026

Why Git shows a merge conflict — and how to clear it

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.

6 min read
BasicsJul 13, 2026

What is a Git branch — and why it isn't a copy of your files

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.

5 min read
GuidesJul 13, 2026

How to undo a Git commit — 3 commands for 3 situations

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.

5 min read
GuidesJul 11, 2026

Why git push is rejected — 3 causes and how to fix each

"! [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.

5 min read
BasicsJul 7, 2026

What is a repository — and why it's not a GitHub folder, but a time machine

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.

5 min read
BasicsJul 5, 2026

What is Git — and why it's not GitHub or the cloud

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.

5 min read
GuidesJul 5, 2026

Git commands every beginner needs — 7 that cover 90% of the work

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.

6 min read
GuidesJun 26, 2026

What is a pull request — and why it's not about 'pulling'

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.

5 min read
GuidesJun 22, 2026

How to use Git as a beginner — step by step, and why it's a time machine for code

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.

6 min read