In a complex project, git rebase -i offers an interactive mode to ________ commits.
- Delete
- Combine
- Revert
- Squash
The correct option is b. Combine. When you use git rebase -i, you can interactively choose what to do with each commit, including combining or modifying them. This is useful for cleaning up commit history in a complex project.
Loading...
Related Quiz
- A developer needs to temporarily switch context to another task without committing their current, incomplete work. What Git feature is most appropriate for this scenario?
- A team is facing an issue where a feature that previously worked is now broken. How can git bisect be used to identify the problematic commit?
- A tag in Git is like a bookmark to a specific ________ in the repository's history.
- For complex project histories, the git ________ command is essential to filter and modify historical commits during migration.
- A developer accidentally committed a file that should not be tracked by Git. What command should they use to rectify this before pushing?