Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

18
bfg Normal file
View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`