Git Branching, Merging, and Rebasing Workflows

8 steps · about 3 h 15 min · Intermediate

  1. Creating, listing, and deleting Git branches (reference, Git Documentation, 20 min)

    Manage lightweight branch pointers to organize independent lines of development.

  2. Joining development histories with git merge (reference, Git Documentation, 25 min)

    Incorporate changes from named commits or branches into the current HEAD branch.

  3. Understanding and resolving Git merge conflicts (guide, GitHub Docs, 25 min)

    Recognize conflict markers in conflicting files, choose the right changes, and finalize the merge commit.

  4. Rebasing branches onto new base commits (guide, Git Documentation, 30 min)

    Maintain a linear project commit history by reapplying commits onto updated upstream branches.

  5. Reapplying commits on top of another base tip with git rebase (reference, Git Documentation, 25 min)

    Forward-port local commits to maintain a clean linear commit graph.

  6. Stashing working directory changes temporarily (guide, Git Documentation, 20 min)

    Save uncommitted modifications with git stash to switch context quickly without losing work.

  7. Branch management and collaboration workflows on GitHub (guide, GitHub Docs, 20 min)

    Follow standard branch naming, protection rules, and PR review lifecycles.

  8. Understanding git reset, checkout, and restore safely (guide, Git Documentation, 30 min)

    Learn the difference between the working directory, index (staging area), and HEAD history.