← CodeClarityLab Home
Browse by Category
+ added · updated 7d
✕ Clear A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Git Rebase vs Merge
Merge preserves branch history with a merge commit — rebase rewrites commits onto the target branch for a linear history.
1mo ago git intermediate
Git Blame & Archaeology
Using git blame, git log -S, and git bisect to trace when code was introduced, who wrote it, and which commit caused a bug — essential for debugging and context.
2mo ago git intermediate
Git LFS
Replaces large binary files with text pointers in git — keeping repository fast while storing actual binaries on a separate LFS server.
2mo ago git intermediate
Diagram: Git Revert vs Reset vs Restore Git Revert vs Reset vs Restore
Three different ways to undo in git — revert creates a new undo commit (safe for shared branches), reset moves HEAD (rewrites history, dangerous on shared branches), restore undoes working directory changes.
2mo ago git intermediate
Git Submodules & Monorepo Alternatives
Git submodules embed one repo inside another — complex to manage. Composer packages, git subtrees, and monorepos are better alternatives for most PHP projects.
2mo ago git intermediate
Diagram: Git Workflows Compared Git Workflows Compared 1.5
Gitflow (feature/develop/release/main branches) vs Trunk-Based Development (short-lived branches merged to main daily) — TBD is preferred for CI/CD, Gitflow for release-based software.
2mo ago git intermediate
GitHub Actions — Reusable Workflows & Matrices
Advanced GitHub Actions patterns — reusable workflow files, matrix strategies for parallel testing, composite actions, and environment protection rules.
2mo ago git intermediate
Diagram: Git Bisect Git Bisect 1.7.14
A binary search tool that finds the commit that introduced a bug by marking commits as good or bad — locating the culprit in O(log n) steps.
2mo ago git intermediate
Diagram: Git Cherry-Pick Git Cherry-Pick
Applies the changes from a specific commit onto the current branch, creating a new commit with the same changes but a different hash.
2mo ago git intermediate
Git Hooks
Scripts that run automatically at specific points in the git workflow — pre-commit for linting, pre-push for tests, commit-msg for message format enforcement.
2mo ago git intermediate
Diagram: Git Internals Git Internals
Git stores all data as content-addressed objects (blobs, trees, commits, tags) in a directed acyclic graph — understanding this explains every git command's behaviour.
2mo ago git advanced
Diagram: Git Reflog Git Reflog
A log of every position HEAD has pointed to — the safety net for recovering commits after a bad reset, rebase, or accidental branch deletion.
2mo ago git intermediate
Diagram: Git Stash Git Stash 1.5
Temporarily shelves uncommitted changes so you can switch context — work in progress is saved to a stack and restored when you return.
2mo ago git beginner
Diagram: Git Tags Git Tags
Named references to specific commits, used to mark release points — annotated tags include metadata and are signed; lightweight tags are just pointers.
2mo ago git beginner
✓ schema.org compliant