Skip to content

Instantly share code, notes, and snippets.

@igorescobar
Last active April 10, 2019 14:19
Show Gist options
  • Save igorescobar/4502738 to your computer and use it in GitHub Desktop.
Save igorescobar/4502738 to your computer and use it in GitHub Desktop.
Git alias to run your maven tests before push your changes to remote
git config alias.spush='!sh -c "mvn clean test && git push \$1 \$2 \$3"'
@Raouf25
Copy link

Raouf25 commented Apr 10, 2019

git config alias.spush '!sh -c "mvn clean test && git push $1 $2 $3"'

just without = it will work great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment