☰ Git lessons Home › Tutorials › Git › Git Glossary A glossary is a small dictionary for one subject. Git has a lot of its own words, and some everyday words, such as "branch", "index" or "upstream", mean something specific in Git. This page explains 71 of them in one or two plain sentences each, in alphabetical order, with a link to the lesson that explains the term properly.
Use your browser's Find (Ctrl+F, or Cmd+F on a Mac) to jump to a term. Terms that are commands, such as HEAD, are listed under their first letter.
A Term Meaning Lesson Annotated tag A tag stored as its own object, with the tagger, a date, a message and optionally a signature. Used for releases. Git Tag
B Term Meaning Lesson Bare repository A repository with no working tree, only the contents of .git. Servers keep bare repositories. Git Remote Bisect A binary search through history to find the commit that introduced a bug. Git Bisect Blame A view showing, for each line of a file, the commit and author that last changed it. Git Blame Blob The object that stores one version of a file's content, without its name. Git Objects: Blob, Tree, Commit and Tag Branch A movable name that points to a commit. New commits on the branch move it forward. Git Branch Bundle A single file holding commits and refs, which you can clone or fetch from like a remote. Git Bundle and Archive
C Term Meaning Lesson Checkout Updating the working tree to a branch or commit. Modern Git splits it into git switch and git restore. Git Switch and Checkout Cherry-pick Copying the changes of an existing commit onto the current branch as a new commit. Git Cherry-Pick Clone A complete copy of a repository, including all history, made with git clone. Git Clone Commit A saved snapshot of the project with an author, a date, a message and its parent commits. Git Commit Commit-graph A file that stores parents and generation numbers of every commit, to speed up history commands. Keeping Repositories Fast Conflict Two changes to the same part of a file that Git can't combine on its own, marked with <<<<<<<, ======= and >>>>>>>. Resolving Merge Conflicts
D Term Meaning Lesson Detached HEAD The state where HEAD points directly at a commit instead of a branch. HEAD and Detached HEAD Diff A list of the lines removed (-) and added (+) between two versions. How to Read a Diff
F Term Meaning Lesson Fast-forward A merge where the branch simply moves forward to the other commit, with no merge commit. Fast-Forward vs Merge Commit Fetch Downloading new commits and refs from a remote without changing your branches. Git Fetch Fork A copy of a repository under your own account on a hosting platform, used to contribute through pull requests. Forking a Repository
G H Term Meaning Lesson Hash (object ID) The ID of an object, computed from its content: 40 hex digits with SHA-1, 64 with SHA-256. Git Internals Overview HEADWhat is checked out now: usually a branch, sometimes a commit (detached). HEAD and Detached HEAD Hook A script Git runs at certain moments, such as before a commit (pre-commit) or a push (pre-push). Git Hooks Hunk One block of changed lines in a diff, starting with an @@ line. How to Read a Diff
I L Term Meaning Lesson Large File Storage (LFS) An extension that keeps large files on a separate server and stores small pointers in Git. Git Large File Storage (LFS) Lightweight tag A tag that is only a name pointing at a commit, with no object of its own. Git Tag
M Term Meaning Lesson mainThe usual name of a repository's default branch. Git Branch Merge Joining two lines of history, usually with a merge commit that has two parents. Git Merge Merge base The best common ancestor of two commits, used as the base of a three-way merge. How Git Merges Merge commit A commit with two or more parents, recording a merge. Git Merge Monorepo One repository holding many projects, often very large. Git Sparse Checkout
O P R Term Meaning Lesson Rebase Replaying commits on top of a different base commit, creating new commits. Git Rebase Ref (reference) A name that points to an object, such as a branch, tag or HEAD. The Index and Refs Reflog The local log of every position HEAD and each branch have had. Git Reflog Refspec A rule that maps remote refs to local ones during fetch and push, such as +refs/heads/*:refs/remotes/origin/*. Working with Several Remotes Reftable A compact storage format for refs, planned as the default for new repositories in Git 3.0. Git 3.0: What Is Planned Remote Another copy of the repository, usually on a server, known by a name such as origin. Git Remote Remote-tracking branch Your local record of where a remote branch was at the last fetch, such as origin/main. Upstream and Remote-Tracking Branches Repository A project's files plus the full history Git keeps in .git. Git Init: Creating a Repository Rerere "Reuse recorded resolution": Git remembers how you resolved a conflict and applies it again. Git Rerere Reset Moving the current branch to another commit, optionally changing the index and working tree. Git Reset: Soft, Mixed and Hard Revert A new commit that undoes the changes of an earlier one. Git Revert
S T Term Meaning Lesson Tag A fixed name for a commit, usually a release such as v1.2.0. Git Tag Three-way merge A merge that compares both sides with their merge base. How Git Merges Tree The object that lists a folder's entries: names, modes and the IDs of blobs and subtrees. Git Objects: Blob, Tree, Commit and Tag
U W ✕ Was this tutorial helpful?
👍 Yes 👎 No