StackKit

Git Tutorials

4 articles

Git · November 2, 2026 · 4 min read

How to Undo Mistakes in Git: reset, revert, restore and reflog

A practical guide to undoing Git mistakes safely: when to use restore, revert or reset, and how reflog can recover commits you thought you lost.

Git · September 16, 2026 · 4 min read

Git worktrees: work on multiple branches without stashing

A practical guide to git worktrees: work on multiple branches without stashing.

Git · May 22, 2026 · 4 min read

Git rebase vs merge: when to use each

Learn how git rebase and git merge differ, when to choose each one, and how to avoid rewriting history that other people depend on.

Git · May 6, 2025 · 8 min read

Git Branching Strategies Explained: GitFlow, Trunk-Based, and GitHub Flow

Compare the most popular Git branching strategies — GitFlow, GitHub Flow, and trunk-based development — and learn which one fits your team's workflow.