Skip to content

BFG

Removes large or troublesome blobs like git-filter-branch does, but faster. And written in Scala

Example

$ bfg --strip-blobs-bigger-than 100M --replace-text banned.txt repo.git

민감한 데이터 제거

요약 하면 다음과 같다:

## 새로운 클론을 받아야 한다 !!
$ git clone --mirror https://github.com/yourname/your.git
$ java -jar ~/Downloads/bfg-1.14.0.jar -D '*.{ttf,woff,woff2}' osom-ui.git
$ cd osom-ui.git
$ git reflog expire --expire=now --all && git gc --prune=now --aggressive
$ git push --force

See also

Favorite site