Skip to content

Instantly share code, notes, and snippets.

@rotu
Created May 22, 2023 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rotu/6713b125f333c4c3047e0680a64eb069 to your computer and use it in GitHub Desktop.
Save rotu/6713b125f333c4c3047e0680a64eb069 to your computer and use it in GitHub Desktop.
prettier multiple files
# list files changed by git (Added or Modified) and tidy them up in prettier
# xargs is a linux thing, but on Windows, can use Gow to get it.
git diff --name-only --diff-filter=AM | xargs -n99 prettier -uw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment