1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 12:45:59 +02:00

bfg: add page (#5984)

This commit is contained in:
Nahin Khan 2021-05-19 00:17:47 +03:00 committed by GitHub
parent 7b1de0b54f
commit 05128b2913
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

13
pages/common/bfg.md Normal file
View file

@ -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}}`