How does the Git rebase operation affect the commit history?

  • It combines commits
  • It discards commits
  • It creates new commits
  • It modifies existing commits
Git rebase is used to integrate changes from one branch to another. It works by applying each commit from the source branch onto the target branch. This can result in a cleaner, more linear commit history as compared to git merge.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *