MacOS에서 imageoptim-cli와 같은 도구를 사용하여 이미지를 스쿼시하고 git history에서 repo 크기를 줄이려고합니다. BFG가 좀 더 임의의 명령을 실행할 수 있습니까? 내 git filter-branch
는 다음과 같이보고 : https://gist.github.com/zbeekman/7482ccd0e87f495387951bd612dc390eBFG repo cleaner는 파일에 대해 임의의 작업을 수행 할 수 있습니까?
git filter-branch --prune-empty --tree-filter 'pwd ; ls -a ; imageoptim -a -q --verbose -d <path/to/img/dir/here> || true' -- --all
을하지만 이것은 그들이 소개했다 후에도, 모든 커밋 해당 파일의 이미지 도구를 실행했습니다.