Arezgitfield notes / engineering
TOPIC COLLECTION23 GUIDES

Git workflows

Practical git workflows guides for your next development decision.

Git workflows4 min read

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 note
Git workflows4 min read

Select 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 note
Git workflows4 min read

Transfer 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 note
Git workflows4 min read

Review 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 note
Git workflows5 min read

Inspect 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 note
Git workflows5 min read

Fix 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 note
Git workflows6 min read

Review 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 note
Git workflows6 min read

Review 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 note
Git workflows5 min read

Review 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 note
Git workflows5 min read

Keep 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 note
Git workflows5 min read

Stage 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 note
Git workflows5 min read

Use 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 note
Git workflows5 min read

Use 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 note
Git workflows5 min read

Use 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 note
Git workflows5 min read

Backport 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 note
Git workflows5 min read

Find 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 note
Git workflows5 min read

Git 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 note
Git workflows5 min read

Use 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 note
Git workflows5 min read

Use 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 note
Git workflows5 min read

Recover 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 note
Git workflows6 min read

How 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 note
Git workflows5 min read

How 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 note
Git workflows5 min read

Trunk-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