0 votes
in Git by
What are the differences between rebasing and merge in Git?

1 Answer

0 votes
by

As you all know, commands would account for a major share of the latest Git interview questions. The rebase command in Git helps in the integration of changes from one branch to another. You can use it instead of the merge command. The merge command helps in taking independent lines of development in the git branch and integrating them in a single branch. The difference between the two commands is evident in the fact that rebases has to rewrite commit history for producing straight, linear order of commits.

Related questions

0 votes
asked Aug 24, 2023 in Git by JackTerrance
0 votes
asked Aug 24, 2023 in Git by JackTerrance
...