Loading video...

Video Failed to Load

Go Home

Git Merge vs. Rebase vs. Squash Commit What are the differences and when should you use each? As I explain in more detail in the video, there are some key distinctions. Git Merge This creates a new commit in the target branch. The new commit ties the histories of...

65,160 views • 2 years ago •via X (Twitter)

5 Comments

deepPurple's profile picture
deepPurple2 years ago

I tried git rebase and end up with unresolved merges (shared project) which doesn’t let me checkout to feature branch with some weird messages like currently rebasing cannot checkout. What am I doing wrong 😑

Abdellah's profile picture
Abdellah2 years ago

I contributed to one popular library and the maintainer asked me to do a rebase. It wasn't easy to do because this is a feature of git I have never used it. So, he finally did the rebase for me. This is beneficial content. Please where can more of it be found?

Deisbel (Sr. Software Developer)'s profile picture
Deisbel (Sr. Software Developer)2 years ago

Good details. Thank you for sharing them. One thing, In 20+ years I have never needed to do a Rebase. I wonder how many of you out there have done anything different of a git merge?

Who Am I's profile picture
Who Am I2 years ago

+

Python Space's profile picture
Python Space2 years ago

Very well explained with great visuals. 🙏

Related Videos