Skip to content

Instantly share code, notes, and snippets.

@magnunleno
Created January 17, 2016 04:18
Show Gist options
  • Save magnunleno/38245f980ac4e4b43146 to your computer and use it in GitHub Desktop.
Save magnunleno/38245f980ac4e4b43146 to your computer and use it in GitHub Desktop.
Limpa PDFs do repositório gjuniioor/gjuniioor.github.io.git
git clone git@github.com:gjuniioor/gjuniioor.github.io.git
cd gjuniioor.github.io
du -sh .git
git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch archives/zines/magazine/h2hc/*.pdf' -- --all
git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch archives/zines/magazine/h2hc/*.pdf' -- --all
git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch pages/zines/magazine/h2hc/*.pdf' -- --all
git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch pages/zines/magazine/h2hc/*.pdf' -- --all
git gc --aggressive --prune=now
git prune --expire=now
git reflog expire --expire-unreachable=now --rewrite --all
git repack -a -d
du -sh .git
@gildasio
Copy link

Cara, muitíssimo obrigado!!! Resolveu lindamente o problema aqui!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment