Skip to content

Instantly share code, notes, and snippets.

@benedictchen
Created July 26, 2018 22:04
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 benedictchen/6e624335b5472d186dd3b748309796d7 to your computer and use it in GitHub Desktop.
Save benedictchen/6e624335b5472d186dd3b748309796d7 to your computer and use it in GitHub Desktop.
Reset all `package-lock.json` files
git status | grep '^.modified' | cut -d: -f2- | sed -e 's/^...//' | grep *package-lock.json | xargs git checkout --
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment