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
Use a push command to remove the last commit from the remote location
Combine the affected commits into one to hide the modifications
Rewrite past activity to exclude the flawed commit from the record
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.
What does it mean to reverse a commit in version control?
Open an interactive chat with Bash
Why is preserving history important in version control?
Open an interactive chat with Bash
What is the difference between reversing a commit and rewriting history?