A large file was accidentally committed to a GitHub repository and you need to remove it to reduce repository size. Which tool should you use?
Choose an answer
Tap an option to check your answer.
Correct answer: bfg.
Why this is the answer
The correct tool is BFG Repo-Cleaner (bfg). It is specifically designed for removing large files or sensitive data from Git repositories, including their history, making it very efficient for cleaning up accidental commits of large files. Git Large File Storage (lfs) is used to manage large files by replacing them with pointers in the repository and storing the actual file content elsewhere. It's for managing large files going forward, not for removing them from past commits. Git Virtual File System (gvfs) is a project that enables Git to handle extremely large repositories by virtualizing the file system. It's not a tool for cleaning repository history. git init is used to create a new, empty Git repository or reinitialize an existing one. It has no function related to removing files from repository history.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed