alias "phpunit-commit"="phpunit && git add . && git commit"

This have saved me so much time.
- phpunit
- if all GREEN, we add and commit to git

(Yes, theres likely tools for this, and some that run after pushing - but I've already avoided some faulty commits)

  • 1
    Yes. Git push hook could do this for you
  • 0
    And I personally would never blindly stage and commit everything
  • 0
    I understand this, really do! Wouldn't use it for all projects either, but for this project it's been amazing

    Your solution is (obviously) better 😄
Add Comment