Ravi Sir's Cards › Chapter 3: Branch, Merge, Rebase, Stash and Pull Requests
Git merge vs rebase: which one do you use, and when?
Git merge vs rebase: which one do you use, and when? Git saves the history of code changes as commits. To bring main-branch changes into your branch:Merge joins the two histories and adds one extra “merge commit”.Rebase replays your commits on top of the latest main, so history is one straight line.

Lesson: 3.8 Rebase when it is safe — and when to merge instead · मराठी card