Your team lead requests the removal of flawed modifications from the main branch. The project must preserve the history for auditing. Which approach can achieve this goal?
Add a commit that reverses the flawed modifications
Rewrite past activity to exclude the flawed commit from the record
Use a push command to remove the last commit from the remote location
Combine the affected commits into one to hide the modifications
Adding a new commit that reverses prior changes removes flawed code while retaining earlier references. Actions that rewrite or remove commits alter history and conflict with audit requirements.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Why is it important to preserve history in a project?
Open an interactive chat with Bash
What is a commit in version control?
Open an interactive chat with Bash
How does adding a reversing commit differ from rewriting history?