culTest

    One of the 100 questions in this topic

    How much do you know about Git and Version Control?

    What is a rebase in Git?

    Answers

    Restoring the repository to an earlier state
    Changing the base of a branch by moving its commits onto another baseCorrect
    Deleting all commits from a branch
    Creating a new Git database

    A rebase in Git is an operation that changes the base of a branch by moving its commits onto another base, typically the type of another branch. Unlike merge, which creates a new commit with two parents, rebase rewrites history by replaying each commit on the new base.