Remove unnecessary files from git repository
It is usefull when first uploading repository to github/gitlab service
brew install bfg
-
Check if in repo is unwanted phrase:
git grep secret-phrase
-
Update
passwords.txt
-
Update
run.sh
->bfg --delete-files del.txt
( more on https://rtyley.github.io/bfg-repo-cleaner/ ) -
Execute
run.sh repo-name
-> it will look for ../repo-name