Git workflows
Practical git workflows guides for your next development decision.
Find Behavioral Changes with Git Pickaxe Searches
Choose Git occurrence searches or patch-line searches, reproduce a count-preserving edit, and turn a history match into a testable regression hypothesis.
Read field noteSelect Exact Git Paths Without Expanding Patterns
Separate shell quoting, option boundaries, and Git pathspec matching so filenames containing brackets cannot silently select a neighboring tracked file.
Read field noteTransfer Git History Offline with Verified Bundles
Create self-contained and incremental Git bundles, verify recipient prerequisites, and import offline history without replacing the checked-out branch.
Read field noteReview Patch Series Before Applying Them with Git Am
Export a bounded Git patch series, inspect it on a review branch, and verify that a conflicting mailbox import can stop and recover its original state.
Read field noteInspect Fetch Mappings Before Pruning Git References
Understand which Git references a fetch updates, preview stale reference cleanup, and keep remote-tracking maintenance separate from local branch deletion.
Read field noteFix Ignore Rules Without Losing Tracked File Intent
Diagnose Git ignore patterns, distinguish tracked files from ignored paths, and review generated-file removal without confusing it with local deletion.
Read field noteReview Reused Conflict Resolutions with Git Rerere
Use Git rerere to reuse recorded text resolutions while preserving manual staging, checking changed intent, and correcting an unsuitable remembered result.
Read field noteReview Pinned Git Submodules as Dependency Changes
Inspect submodule commit updates, verify their remote availability, and test a fresh checkout before accepting the superproject's dependency reference.
Read field noteReview Rebased Branches with Git Range-Diff
Compare two versions of a Git branch with explicit commit ranges, inspect changed patches, and retain review evidence after a rebase.
Read field noteKeep Line Endings Consistent with Git Attributes
Define file-specific Git line-ending rules, inspect index and working-tree bytes, and review normalization without mixing it with behavior changes.
Read field noteStage Focused Commits with Git Add Patch
Separate mixed edits into independently testable commits using partial staging, staged diff inspection, and verification from a clean checkout.
Read field noteUse Git Stash Without Losing Track of Your Work
Save unfinished Git work with explicit scope, inspect each stash, restore staged intent, and handle conflicts before retiring the saved state.
Read field noteUse Git Tags to Give Releases a Stable Identity
Connect release tags to explicit commits and verified artifacts, publish only the intended reference, and handle tagging mistakes without ambiguity.
Read field noteUse Sparse Checkout Without Hiding Build Dependencies
Choose a useful sparse checkout, include the dependency paths your work needs, and verify that focused files still support builds, tests, and reviews.
Read field noteBackport Fixes Safely with Git Cherry-Pick
A disciplined backport workflow for selecting a fix, checking dependencies, resolving target-branch conflicts, testing the result, and preserving provenance.
Read field noteFind Regressions Faster with Git Bisect
A reproducible Git bisect method that defines good and bad endpoints, automates a trustworthy predicate, handles untestable commits, and preserves evidence.
Read field noteGit Restore, Reset, or Revert: Choose by State
A state-based guide to choosing Git restore, reset, or revert without confusing working-tree edits, staged content, local commits, and shared history.
Read field noteUse Git Worktrees for Parallel Branch Work
A practical Git worktree workflow for reviewing, testing, and fixing multiple branches without stashing changes or duplicating repository history.
Read field noteUse Interactive Rebase Before Sharing a Branch
A safe interactive rebase workflow for clarifying private branch history, resolving conflicts, comparing rewritten commits, and avoiding damage to shared work.
Read field noteRecover Lost Commits with Git Reflog
A recovery-first method for finding displaced Git commits, preserving them with a rescue branch, and verifying the result without rewriting more history.
Read field noteHow to Review a Git Diff Without Missing the Real Risk
A layered method for reviewing Git diffs by intent, boundaries, behavior, data flow, security, tests, and release impact instead of reading line by line.
Read field noteHow to Resolve Git Merge Conflicts Without Losing Intent
A safe process for understanding, resolving, testing, and documenting Git merge conflicts while preserving the intent of both sides of a change.
Read field noteTrunk-Based Development vs GitFlow: Choose by Delivery Constraints
A practical comparison of trunk-based development and GitFlow based on release cadence, review capacity, deployment safety, support windows, and team structure.
Read field note