1.

GIT Rebase

Answer»

Git Rebase is a process of combining a sequence of commits to a new base commit.


  • The primary reason for rebasing is to maintain a linear project history.

  • When you rebase, you ‘unplug’ a branch and ‘replug’ it on the tip of another branch(usually main).

  • The goal of rebasing is to take all the commits from a feature branch and put it on the main branch.

The following rebase command is used for rebasing the commits:

git rebase <branch_name>


Discussion

No Comment Found