From 05128b291394fbff0a58fed91d7869063b3fa02b Mon Sep 17 00:00:00 2001 From: Nahin Khan Date: Wed, 19 May 2021 00:17:47 +0300 Subject: [PATCH] bfg: add page (#5984) --- pages/common/bfg.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pages/common/bfg.md diff --git a/pages/common/bfg.md b/pages/common/bfg.md new file mode 100644 index 000000000..e8cc722e7 --- /dev/null +++ b/pages/common/bfg.md @@ -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: . + +- 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}}`