Skip to content

Instantly share code, notes, and snippets.

@yoyosan
Created July 5, 2017 07:40
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 yoyosan/2a113c8ea1806fb51a47685817c319df to your computer and use it in GitHub Desktop.
Save yoyosan/2a113c8ea1806fb51a47685817c319df to your computer and use it in GitHub Desktop.
Clean up git stage after running composer update for a package/all packages.
rm -rf `git status -s | grep "??" | cut -d"?" -f3`
git checkout -- .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment