What's the different between merge and rebase in git?

0 votes
added Apr 28, 2016 in Git by anonymous
recategorized Nov 17, 2017 by LC Marshal

Instead of using a merge commit, rebasing re-writes the project history by creating brand new commits for each commit in the original branch.

The major benefit of rebasing is that you get a much cleaner project history. First, it eliminates the unnecessary merge commits required by git merge.

Learn more about merge vs rebase here.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.