What is the BFG Repo-Cleaner used for?

Prepare for the GitHub Advanced Security Certification Test. Practice with multiple choice questions, detailed explanations, and hints. Achieve success on your first attempt!

Multiple Choice

What is the BFG Repo-Cleaner used for?

Explanation:
BFG Repo-Cleaner is used to scrub sensitive data from your Git history. It rewrites past commits to remove secrets like passwords or API keys, or to delete large files that shouldn’t be in the repository, so that they no longer exist anywhere in the history. It’s designed to be fast and easy, often preferred over older methods for cleaning up a repo’s history. After running it on a mirrored clone, you reset and repack the repository and push the rewritten history. It’s not a code formatter, not a Git hosting service, and not a static analysis tool, so those options don’t fit what BFG does.

BFG Repo-Cleaner is used to scrub sensitive data from your Git history. It rewrites past commits to remove secrets like passwords or API keys, or to delete large files that shouldn’t be in the repository, so that they no longer exist anywhere in the history. It’s designed to be fast and easy, often preferred over older methods for cleaning up a repo’s history. After running it on a mirrored clone, you reset and repack the repository and push the rewritten history.

It’s not a code formatter, not a Git hosting service, and not a static analysis tool, so those options don’t fit what BFG does.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy