Back to Browse

Github Session 02 | How to Rebase Commits on Github and Squash Them

10 views
May 14, 2026
21:31

๐Ÿ—œ๏ธ How to Squash Commits in Git | Clean Up Your Git History In this video, I show you how to squash multiple messy commits into a single clean commit using Git's interactive rebase. If your branch is full of "fix typo", "wip", and "more fixes" commits โ€” this is the video for you. Keep your Git history clean and professional before merging a PR. ๐Ÿ“š What You'll Learn: โœ… What squashing commits means and why it matters โœ… Using git rebase -i HEAD~N for interactive rebase โœ… Changing pick โ†’ squash (or s) in the editor โœ… Writing a clean, unified commit message โœ… Force pushing safely with --force-with-lease โœ… Squashing during a PR merge on GitHub ๐Ÿ”— Useful Resources: Find out all Git Commands over here properly - https://medium.com/@ritankar.saha786/understanding-git-and-github-b79bb84de9e8 ๐Ÿ™‹ Connect with Me: ๐Ÿ’ผ LinkedIn: https://www.linkedin.com/in/ritankar-saha-8041b9289/ ๐Ÿ™ GitHub: https://github.com/ritankarsaha ๐Ÿฆ X (Twitter): https://x.com/ritankarxx โœ๏ธ Medium: https://medium.com/@ritankar.saha786 ๐Ÿ“บ YouTube: https://www.youtube.com/@zanderxx-x9n #Git #GitHub #PullRequest #OpenSource #GitTutorial #DevOps #Programming #WebDevelopment #Coding #GitHubTutorial #PR #VersionControl

Download

0 formats

No download links available.

Github Session 02 | How to Rebase Commits on Github and Squash Them | NatokHD