A developer accidentally commits a large binary file. What Git feature should they use to remove this file from history while retaining current changes?
- rebase
- reset
- filter-branch
- reflog
The correct option is filter-branch. This Git command allows the modification of the repository's commit history, including the removal of sensitive or large files. It's crucial to be cautious when using this command as it can rewrite history, impacting collaborators.
Loading...
Related Quiz
- For large-scale open source projects, Git's ________ feature is essential for managing multiple project versions simultaneously.
- If you have committed the wrong files to Git, what command can you use to undo this last commit?
- To handle large-scale code migrations efficiently, Git's __________ feature can be used to manage project dependencies.
- Code reviews are often performed on the changes in a _______ before they are merged into the main branch.
- For high performance in large-scale Git operations, setting the git __________ configuration can significantly reduce latency.