Skip to content

Instantly share code, notes, and snippets.

@mbloms
Created December 15, 2025 13:51
Show Gist options
  • Select an option

  • Save mbloms/99884dc9cfe80983f622659e0b560f68 to your computer and use it in GitHub Desktop.

Select an option

Save mbloms/99884dc9cfe80983f622659e0b560f68 to your computer and use it in GitHub Desktop.
Spotless Apply using git filter-branch
git filter-branch -f --prune-empty --tree-filter '
if [ -x ./gradlew ]; then
./gradlew -q spotlessApply
fi
' --index-filter 'git rm -r --cached --ignore-unmatch .gradle build' -- integration..mikael-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment