====== BFG Repo-Cleaner ====== * https://rtyley.github.io/bfg-repo-cleaner/ * https://github.com/rtyley/bfg-repo-cleaner * [[:git|git]] 리포지토리에 올라와 있는 민감한 데이터를 history까지 포함해서 완전 삭제해준다. * ''git-repo-filter''보다 더 좋다고 함. ===== 파일삭제 ===== * path 로 특정되는 파일을 지정하는게 아니라 ''glob'' 을 지정해야 한다. * 혹은 파일이름을 줄경우 해당 파일이름을 가지 모든 파일이 해당한다. * 파일의 히스토리를 삭제하고 가장 마지막 커밋만 남긴다. java -jar bfg-.jar --delete-files YOUR-FILE-WITH-SENSITIVE-DATA # pull 한 뒤에 push git pull git push ===== 참조 ===== * [[https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository|Removing sensitive data from a repository - GitHub Docs]]