0 votes
in Git by
What is the difference between rebasing and merge in Git?

1 Answer

0 votes
by
In Git, the rebase command is used to integrate changes from one branch into another. It is an alternative to the “merge” command. The difference between rebasing and merge is that rebase rewrites the commit history in order to produce a straight, linear succession of commits.

Merging is Git’s way of putting a forked history back together again. The git merge command helps you take the independent lines of development created by git branch and integrate them into a single branch.

Related questions

0 votes
asked Oct 17, 2020 in Git by SakshiSharma
0 votes
asked Mar 11, 2021 in Git by rajeshsharma
...