Skip to content

Commit

Permalink
bfg: add page (#5984)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnahinkhan committed May 18, 2021
1 parent 7b1de0b commit 05128b2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pages/common/bfg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# bfg

> Remove large files or passwords from Git history like git-filter-branch.
> Note: if your repository is connected to a remote, you will need to force push to it.
> More information: <https://rtyley.github.io/bfg-repo-cleaner/>.
- Remove a file with sensitive data but leave the latest commit untouched:

`bfg --delete-files {{file_with_sensitive_data}}`

- Remove all text mentioned in the specified file wherever it can be found in the repository's history:

`bfg --replace-text {{path/to/file.txt}}`

0 comments on commit 05128b2

Please sign in to comment.