How to Squash Commits in Git (Interactive Rebase)
דרג סרטון זה
התחבר כדי לדרג
תיאור
If this visual learning style works for you, I built LearnGit.io to be a more complete curriculum focusing on how Git actually works, rather than memorizing commands: https://learngit.io/
--
Learn how to squash multiple Git commits into one using interactive rebase. This tutorial walks through the exact commands and workflow for cleaning up your commit history before merging.
In this video you'll learn:
• How to use git rebase -i to squash commits
• When to squash vs. keep commits separate
• How to edit squash commit messages
• Why squashing helps with code review and merge workflows
Commands shown:
• git rebase -i HEAD~3
• git log
FULL WRITEUP: https://www.themoderncoder.com/combining-git-commits...
More Git videos? Subscribe: https://www.youtube.com/@themoderncoder