Git
Glossary
Every Git term in plain words, with the module that teaches it. Inside modules, any word with a dotted underline explains itself.
Git · 55 terms
- Amend
- Replacing the last commit with a corrected one (new message or added changes). It creates a new commit, so only amend unpushed work.
- Learn it in “Undoing things” →
- Atomic commit
- A commit that makes exactly one logical change, so it can be reviewed, reverted or cherry-picked on its own.
- Learn it in “Commit messages and history hygiene” →
- Bisect
- A binary search through history: Git checks out the middle commit between a good and a bad one until it finds the commit that introduced a problem.
- Learn it in “Bisect and blame” →
- Blame
- Showing, for each line of a file, which commit last changed it, so you can find the reason behind the code.
- Learn it in “Bisect and blame” →
- Blob
- The Git object that stores one file's content, without its name.
- Learn it in “Snapshots, not differences” →
- Branch
- A name that points to a commit and moves forward when you commit on it. Creating one copies nothing.
- Learn it in “Branches are pointers” →
- Branch protection
- Rules a hosting service enforces on important branches, such as blocking force pushes or requiring a reviewed pull request and passing checks before merging.
- Learn it in “Capstone: untangle a team's messy repository” →
- Branching strategy
- A team's agreement about how branches are used, such as GitFlow, GitHub flow or trunk-based development.
- Learn it in “Branching strategies” →
- Cherry-pick
- Applying the change from one specific commit onto the current branch, as a new commit.
- Learn it in “Cherry-pick and revert” →
- CODEOWNERS
- A file listing who owns which paths in a repository, so the platform can automatically request their review.
- Learn it in “Pull requests and forks” →
- Commit
- A saved snapshot of the whole project, with an author, a timestamp, a message and a link to the commit before it.
- Learn it in “Why version control” →
- Conflict markers
- The <<<<<<<, ======= and >>>>>>> lines Git writes into a file to show both sides of a conflict. They must be removed before committing.
- Learn it in “Merge conflicts” →
- Content hash
- A fixed-length fingerprint computed from data. Git names every object by the SHA-1 (or SHA-256) hash of its content, so the same content always gets the same name.
- Learn it in “Snapshots, not differences” →
- Conventional Commits
- A commit message format, type(scope): description, that lets tools generate changelogs and choose version numbers.
- Learn it in “Commit messages and history hygiene” →
- Detached HEAD
- When HEAD points straight at a commit instead of a branch, for example after checking out an old commit.
- Learn it in “Commits and history” →
- Fast-forward
- A merge where one branch simply moves forward to the other's commit, because it had no new commits of its own.
- Learn it in “Merging” →
- Feature flag
- A switch in the code that turns a feature on or off without a new deploy, so unfinished work can be merged but hidden.
- Learn it in “Branching strategies” →
- Fetch
- Downloading new commits from a remote and updating remote-tracking branches like origin/main, without changing your own branches.
- Learn it in “Remotes” →
- Force push
- Pushing a branch whose history was rewritten, replacing the remote's version. --force-with-lease refuses if someone else pushed in the meantime.
- Learn it in “Rebase” →
- Fork
- A copy of someone else's repository under your own account on a hosting platform, used to propose changes when you can't push to the original.
- Learn it in “Pull requests and forks” →
- Git
- The free, open-source, distributed version control system created by Linus Torvalds in 2005 and used by almost every software team.
- Learn it in “Why version control” →
- Git hook
- A script Git runs automatically at a moment like committing or pushing. Client hooks run on your machine and can be skipped; server hooks can't.
- Learn it in “Hooks and automation” →
- Git LFS
- Large File Storage: an extension that keeps small pointer files in Git and stores large binaries on a separate server.
- Learn it in “Big repositories” →
- HEAD
- Git's marker for where you are: usually the name of the current branch, or a commit ID when detached.
- Learn it in “Commits and history” →
- Hunk
- One block of changed lines in a file. git add -p lets you stage changes hunk by hunk.
- Learn it in “The three areas” →
- Index (staging area)
- Git's list of exactly what will go into the next commit. git add puts changes into it.
- Learn it in “The three areas” →
- Merge base
- The most recent commit that two branches share; the starting point a three-way merge compares against.
- Learn it in “Merging” →
- Merge conflict
- When two branches changed the same part of a file differently, so Git stops and asks a person to choose the result.
- Learn it in “Merge conflicts” →
- Monorepo
- One repository holding many projects, so a change across several of them can be made in a single commit.
- Learn it in “Monorepos and submodules” →
- Parent commit
- The commit a new commit was made on top of. Each commit stores its parent's ID; a merge commit has two.
- Learn it in “Commits and history” →
- Partial clone
- A clone that downloads all commits but fetches file contents only when they're needed (git clone --filter=blob:none).
- Learn it in “Big repositories” →
- Pull
- Fetching from a remote and then merging or rebasing the result into your current branch.
- Learn it in “Remotes” →
- Pull request
- A hosting-platform feature that proposes merging one branch into another, with discussion, review and automated checks first. GitLab calls it a merge request.
- Learn it in “Pull requests and forks” →
- Push
- Sending your commits to a remote and moving its branch to match. It's rejected if the remote has commits you don't.
- Learn it in “Remotes” →
- Rebase
- Replaying a branch's commits on top of another branch, creating new commits with new IDs and a straight history.
- Learn it in “Rebase” →
- Reflog
- Git's local log of every position HEAD and each branch has pointed to, used to find commits after a bad reset or deleted branch.
- Learn it in “The reflog” →
- Remote
- Another copy of the repository that yours can fetch from and push to, usually on a server and named origin.
- Learn it in “Remotes” →
- Remote-tracking branch
- A read-only pointer like origin/main that records where a remote's branch was the last time you fetched.
- Learn it in “Remotes” →
- Repository
- A project's files together with their complete history. In Git every clone is a full repository; the history lives in a hidden .git folder.
- Learn it in “Why version control” →
- Reset
- Moving the current branch to another commit. --soft keeps the index and files, --mixed (the default) keeps files, --hard resets everything.
- Learn it in “Undoing things” →
- Revert
- Undoing a commit by adding a new commit that makes the opposite change, without rewriting history.
- Learn it in “Cherry-pick and revert” →
- Rewriting history
- Replacing existing commits with new ones (amend, rebase, filter-repo). It changes commit IDs and disrupts anyone who has the old commits.
- Learn it in “Signing and secrets in history” →
- Shallow clone
- A clone with only the most recent commits (git clone --depth 1), fast but without full history.
- Learn it in “Big repositories” →
- Signed commit
- A commit with a cryptographic signature (GPG, SSH or X.509) that proves who made it; hosting platforms show it as Verified.
- Learn it in “Signing and secrets in history” →
- Snapshot
- A record of every file as it was at one moment. Each Git commit is a snapshot of the whole project, not a list of changes.
- Learn it in “Snapshots, not differences” →
- Sparse checkout
- Checking out only some folders of a repository into your working tree.
- Learn it in “Big repositories” →
- Staging
- Choosing which changes go into the next commit by adding them to the index.
- Learn it in “The three areas” →
- Stash
- A shelf for uncommitted changes: git stash saves them and cleans the working tree; git stash pop brings them back.
- Learn it in “Stash and worktrees” →
- Submodule
- Another Git repository included inside yours, pinned at one exact commit.
- Learn it in “Monorepos and submodules” →
- Three-way merge
- Combining two versions by comparing each with their common ancestor, so changes made on only one side are kept automatically.
- Learn it in “Merging” →
- Tree
- The Git object that stands for a folder: a list of names, each pointing to a blob or another tree.
- Learn it in “Snapshots, not differences” →
- Unreachable commit
- A commit that no branch, tag or HEAD can reach by following parents. Git keeps it for a while, then cleans it up.
- Learn it in “The reflog” →
- Version control
- A system that records every change to a set of files, who made it and why, so you can go back to any version and work in parallel.
- Learn it in “Why version control” →
- Working tree
- The ordinary files of a project that you see and edit, as opposed to the history stored in .git.
- Learn it in “The three areas” →
- Worktree
- An extra working folder attached to the same repository, checked out on a different branch.
- Learn it in “Stash and worktrees” →
A
B
C
D
F
G
H
I
M
P
R
S
T
U
V
W
General terms · shared by every track
- ACID
- Four guarantees for transactions: Atomic (all or nothing), Consistent (rules hold), Isolated (concurrent work doesn't interfere), Durable (once done, it stays done).
- Learn it in “ACID on object storage” →
- Atomic
- All or nothing. An atomic change either happens completely or not at all, and nobody ever sees it half done.
- Think of it as: Handing over a sealed envelope: the other person has it or doesn't. There's no half-handed envelope.
- Learn it in “Object storage: the ground floor” →
- Batch processing
- Processing data in scheduled chunks, such as every night or every hour.
- Learn it in “Getting data in” →
- CSV
- Comma-separated values: plain text, one row per line. Easy to read, slow and large for analytics, and no schema.
- Learn it in “Rows vs columns: file formats” →
- Idempotent
- Safe to run twice: running the job again gives the same result instead of duplicating data.
- Learn it in “Medallion architecture” →
- JSON
- A text format of nested key-value objects, like {"id": 7}. Common for app events and APIs, and used by Delta's transaction log.
- Learn it in “Rows vs columns: file formats” →
- Metadata
- Data about data: which files exist, their schema, sizes and statistics. Engines read metadata first to plan work.
- Learn it in “What makes a table a table” →
- Schema
- The structure of a table: its column names and types, such as order_id: long, amount: decimal.
- Learn it in “Schema evolution & enforcement” →
- SQL
- The standard language for querying tables: SELECT … FROM … WHERE …
- Learn it in “Hands-on: query in your browser” →
- Streaming
- Processing data continuously as it arrives, within seconds or minutes.
- Learn it in “Getting data in” →
- Transaction
- A group of changes that succeeds or fails as one unit.
- Think of it as: A money transfer: debit one account and credit the other, or do neither.
- Learn it in “ACID on object storage” →
A
B
C
I
J
M
S
T