StackKit

Git Tutorials

5 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.

Git · April 25, 2025 · 8 min read

20 Git Commands Every Developer Must Know in 2025

Master the essential Git commands that cover everything from daily workflow to fixing mistakes and collaborating with teams.