Skip to content

Glossary: Source control & Git

36 DevOps terms explained: Source control & Git.

Index
36 items

.gitignore

A file listing paths Git should not track: build output, dependencies, local config, secrets such as .env files.

Cherry-pick

Copying one specific commit onto another branch, e.g. backporting a fix to a release branch.

Example git cherry-pick 4f2a9c1

CODEOWNERS

A file that maps paths in the repo to the people or teams who own them; they are automatically requested as reviewers, and their approval can be required.

Commit

A saved snapshot of staged changes, with an author, timestamp, message and a SHA hash that identifies it. Commits form the project history.

Example git commit -m 'Fix retry on timeout'

Diff

The line-by-line difference between two versions of files: what was added, removed or changed.

Force push

Overwriting the remote branch with your local history (after a rebase or amend). Destroys others' commits if they pushed in between; --force-with-lease is the safer form.

Fork

Your own server-side copy of someone else's repository, used to propose changes via pull requests without write access to the original.

Git hooks

Scripts Git runs on events such as pre-commit, commit-msg or pre-push, used to lint, format or block secrets before code leaves your machine. The pre-commit framework manages them.

Git LFS

Also Large File Storage

A Git extension that stores large binary files (images, models, archives) outside the main history and keeps small pointers in the repo.

GitFlow

A branching model with long-lived develop and main branches plus feature, release and hotfix branches. Fits scheduled, versioned releases; heavy for continuous delivery.

HEAD

Git's pointer to what you have checked out, normally the latest commit of the current branch. HEAD~1 means one commit before it.

Merge conflict

Git can't combine two changes automatically because both edited the same lines. You choose the final content by hand, then commit.

Monorepo

One repository holding many projects or services. Easier cross-project changes and shared tooling; needs smart CI that only builds what changed.

Pair programming

Two people working on the same code at once: one types, one reviews and thinks ahead. A continuous form of code review.

Polyrepo

One repository per service or library. Clear ownership and simple pipelines; cross-repo changes and version coordination are harder.

Rebase

Replaying your commits on top of another branch's latest commit, giving a straight history. It rewrites commit IDs, so don't rebase commits others already pulled.

Example git rebase origin/main

Reflog

Git's local log of every position HEAD has had, including after resets and rebases. The usual way to recover 'lost' commits.

Remote

A named link to another copy of the repository, usually on a server. origin is the default name for the one you cloned; upstream often names the original project of a fork.

Example git remote -v

Repository

Also repo

A project's files plus their full change history. A local repo lives on your machine; remotes (like origin on GitHub or GitLab) are shared copies.

Semantic versioning (SemVer)

Versions written MAJOR.MINOR.PATCH: bump MAJOR for breaking changes, MINOR for backward-compatible features, PATCH for bug fixes.

Example 1.4.2 -> 1.5.0 adds a feature; 1.5.0 -> 2.0.0 breaks an API.

Squash

Combining several commits into one, often when merging a pull request so main gets one clean commit per change.

Stash

Temporarily shelving uncommitted changes so you can switch branches with a clean working tree, then re-apply them later.

Example git stash push -u; git stash pop

Version control

Also source control · VCS · SCM

A system that records every change to files over time, who made it and why, so you can compare versions, work in parallel and go back. Git is the standard today.

My DevOps Playbook by Angelo John Calleja

New runbook

GitHub not connected

Saving is handled by the site: the GitHub token is stored in Cloudflare, not in your browser. Enter the editor password (the EDITOR_PASSWORD secret) to unlock saving in this browser.

Saving commits to gelogrammer/My_DevOps_Playbook. Create a fine-grained token with access to only this repo andContents: Read and write, then paste it here. It is stored only in this browser.

src/content/docs/…