You are developing an application for MDFT Pro, a well-known training agency. The application’s source code is stored in a Git repository with multiple branches.
You have made several commits to an experiment branch and now want to integrate those changes into the main branch. To maintain a clean, linear commit history, you want to reapply the experiment branch’s commits onto the main branch, effectively rewriting the history of how the changes were introduced.
Which Git option should you use?
Choose the correct answer from the options below.
Explanations for each answer: