Git & Version Control
61 terms in Git & Version Control
If your relationship with Git is mostly just copy-pasting commands and praying, this is your home. Below: every Git, GitHub, and version-control term you'll ever need — commits, branches, rebase, cherry-pick, stash, the works.
All Git & Version Control terms
.gitignore
A .gitignore file is a list of files and folders that Git should completely ignore. It's like telling Git 'pretend these don't exist.
Approval Theater
Approval theater is when a pull request gets its required two approvals in under ninety seconds from reviewers who very clearly did not read a single line...
Blame
Git blame shows you who wrote each line of a file and when.
Branch
A branch is like creating a parallel universe for your code.
Branch Cemetery
A branch cemetery is the graveyard of abandoned feature branches in your repo. Hundreds of them. Nobody knows what's on them. Nobody dares delete them.
CODEOWNERS
CODEOWNERS is a file that turns who's-supposed-to-review-this from a Slack message into an automatic assignment.
Checkout
Checkout is like teleporting to a different branch or going back in time to an old version.
Cherry-pick
Cherry-pick is like copying one specific change from another branch without merging everything.
Clone
Clone is like downloading someone's entire project to your computer — all the files, all the history, everything.
Commit
A commit is like pressing the save button in a video game.
Commit Hygiene
Commit hygiene is treating your git history like something other people, including future you, will actually have to read, not just a diary of every save p...
Conflict
A conflict is when two people changed the exact same part of the same file differently, and Git doesn't know which version to keep.
Conventional Commits
Conventional Commits is a format for writing commit messages that humans AND machines can understand.
Dead Branch
A dead branch is a branch nobody touches anymore. No commits in months, no open PR, no clear purpose. It's just... there. Safe to delete? Probably.
Detached HEAD
Detached HEAD is the state you end up in when you check out a specific commit instead of a branch, and git politely warns you that anything you commit here...
Diff
A diff shows you exactly what changed between two versions of your code.
Fast-Forward Merge
A fast-forward merge is git taking the lazy shortcut when it can.
Fork
A fork is like making your own personal copy of someone else's project on GitHub.
Git
Git is like a magical save system for your code. Every time you save (commit), it remembers exactly what changed.
Git Bisect
Git bisect is a binary search for bugs.
Git Blame Driven Development
Git blame driven development is when you look at broken code and your first action isn't to fix it — it's to run `git blame` to find out who wrote it.
Git Garbage Collection
Git garbage collection is spring cleaning for your repository.
Git LFS
Git LFS is what you reach for when you need to version control files git was never really designed for, huge binary assets like design files, videos, or tr...
Git Object Model
Under the hood, git doesn't actually store files and folders the way your operating system does.
Git Rerere
Rerere stands for reuse recorded resolution, and it's git remembering how you resolved a merge conflict so it never has to bother you with the exact same c...
Git Subtree
Git subtree lets you fold an entire external repository into a subfolder of your own, history and all, as if it had always lived there.
GitHub
GitHub is like Instagram for code.
HEAD
HEAD is like a bookmark that says 'you are here' in your Git history. It points to the commit you're currently looking at.
Log
Git log is like a diary of everything that happened in your project. It shows a timeline of all commits — who made them, when, and the messages they wrote.
Long-Lived Branch
A long-lived branch is the feature branch that was supposed to take three days and is now somehow eight weeks old, quietly drifting further from main every...
Merge
Merge is like combining two parallel universes back into one. You take the changes from your branch and smoosh them into another branch.
Merge Hell
Merge hell is when you've been on a feature branch for three weeks, main has moved 400 commits, and now every file has a conflict.
Merge Monster
A merge monster is that one colossal PR that's been open for two months, touches 400 files, and everyone's afraid to merge.
Origin
Origin is just the default nickname for the remote server where your code lives. When you clone a repo, Git automatically names that remote 'origin'.
Packfile
A packfile is git's way of not storing your entire history as a million tiny loose files.
Partial Clone
A partial clone tells git to grab the commit history and file names, but not bother downloading the actual file contents until they're actually needed.
Patch Series
A patch series is the original stacked diffs, from back before pull requests existed: a numbered sequence of standalone patch files, each one a self-contai...
Pull
Pull is the opposite of push — it downloads everyone else's latest changes from the cloud to your computer.
Pull Request (PR)
A pull request is like raising your hand in class and saying 'Hey, I made some changes — can someone check my work before we make it official?
Push
Push is like uploading your saved game to the cloud so your friends can download it.
Rebase
Rebase is like rewriting history.
Reflog
Git's reflog is the secret undo history that survives even after you think you've deleted something forever.
Remote
A remote is the cloud copy of your project — usually on GitHub or GitLab.
Repository (Repo)
A repository (repo) is a folder that Git is watching. It contains all your project files plus the entire history of every change ever made.
Reset
Reset is like pressing undo on your commits.
Revert
Revert is the safe undo button. Instead of erasing history (like reset), it creates a NEW commit that undoes the changes from an old commit.
Semantic Conflict
A semantic conflict is the scariest kind of merge because git doesn't even notice it.
Shallow Clone
A shallow clone grabs only the most recent slice of commit history instead of the entire multi-year saga, the same way you'd binge the last three episodes...
Signed Commits
Signed commits are git's way of proving a commit actually came from the person whose name is on it, not from someone who cloned your repo and set git confi...
Sparse Checkout
Sparse checkout lets you clone only specific folders from a repo — grocery shopping with a list instead of buying the whole store.
Squash
Squash is like combining multiple save points into one.
Stacked Diffs
Stacked diffs are what happens when you refuse to let one giant pull request hold a whole feature hostage.
Staging Area
The staging area is like a shopping cart. Before you 'buy' (commit) your changes, you put them in the cart first with `git add`.
Stale Branch
A stale branch is one that's fallen behind main so much that merging it back in is going to hurt. A branch goes stale in hours on fast-moving teams.
Stash
Stash is like putting your messy work in a drawer temporarily.
Submodule
A submodule is a repo inside another repo. It's like embedding someone else's project inside yours.
Tag
A tag is like a permanent bookmark on a specific commit. While branches move forward as you add commits, a tag stays put forever.
Trunk-Based Development
Instead of giant feature branches that live for 3 weeks and cause merge hell, trunk-based development has everyone commit to main every day.
Worktree
A worktree lets you have multiple branches checked out at the same time in different folders.
Zombie Branch
A zombie branch is a merged branch that's still lying around in your repo, refusing to stay dead. It got merged weeks ago. The PR is closed.
Zombie PR
A zombie PR is one that's technically still open but the author left the company six months ago, the branch conflicts with everything, and the feature was...