Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save paulomcnally/89e57ae944b40915ff52b022c9c8dda4 to your computer and use it in GitHub Desktop.

Select an option

Save paulomcnally/89e57ae944b40915ff52b022c9c8dda4 to your computer and use it in GitHub Desktop.
Clean cache on public directory from rails projects
git filter-branch --force --index-filter 'git rm -r --cached --ignore-unmatch public/assets' --prune-empty --tag-name-filter cat -- --all
git filter-branch --force --index-filter 'git rm -r --cached --ignore-unmatch public/packs' --prune-empty --tag-name-filter cat -- --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment