Skip to content

Instantly share code, notes, and snippets.

@benedictchen
Created July 26, 2018 22:04
Show Gist options
  • 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