
Run git init in a folder and a hidden .git directory appears inside it. Objects, refs/heads, refs/tags and the template files all…

Nothing you commit leaves your machine until you push it. Until then the work is yours…

Every clone of a Git repository carries the complete history of the project. That works because…

A Git branch is a pointer to a commit, saved as a small file that holds…

Every project folder collects files Git has no business storing. Compiled output, a node\_modules folder with…

Most teams land on trunk-based development after one too many merges of a branch that drifted…

Vincent Driessen published Git Flow in 2010, back when most teams shipped software as numbered versions.…

Say you’re halfway through a change and someone needs you on another branch right now. git…

Type git checkout and Git does one of two quite different jobs, depending on what comes…

Run git pull and Git downloads whatever new commits are sitting on the remote, then folds…

Reviewing edits before a commit and comparing branches before a merge are what git diff gets…

Teammates push while you’re away from the keyboard, and git fetch is how you find out…

Git lets you stand on any commit in history and keep working, which is fine until…

Every commit in Git gets a name you never picked. It shows up in the terminal…

Most untracked files in a project are junk. Build output, a scratch file called test2.txt that…

Deleting a tracked file by hand takes two steps. You remove it from disk, then you…

Git keeps the full history on every machine, which works fine until a second person joins…












