Your team decides to enforce a linear history on the main branch. Which Git feature would be most appropriate to achieve this?

  • merge
  • rebase
  • squash
  • cherry-pick
The correct option is rebase. Rebasing helps create a linear history by incorporating changes from one branch onto another, eliminating unnecessary merge commits. This promotes a cleaner and more straightforward history, especially on the main branch.
Add your answer
Loading...

Leave a comment

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