Skip to content

Instantly share code, notes, and snippets.

@andypa
Created May 9, 2019 11:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andypa/4b43d54c58272914de523ccc8d8375c9 to your computer and use it in GitHub Desktop.
Save andypa/4b43d54c58272914de523ccc8d8375c9 to your computer and use it in GitHub Desktop.
execute composer update and directly commit the composer.lock and push it
alias pushlock='COMPOSER_DISCARD_CHANGES=stash composer update --no-interaction && git add composer.lock && git commit -m "[UPDATE] composer.lock" && git push'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment