git merge vs git rebase | Git Interview Questions and Answers

Опубликовано: 21 Май 2026
на канале: DevOps Molvi
1,813
25

What is the difference between git merge vs git rebase

Question No.23

This is one of the most important Git Interview Questions and Answers

The purpose of both commands is to merge branches. In short,

git merge: saves the commits history of both branches
git rebase: rewrites the commits history all over again, making the working tree cleaner and linear.

Git Full Course:    • Git & GitHub Full Course 2026: Zero to Her...