tcr test commit revert

Shell
alias test='npm test' #Javascript
alias test='./vendor/bin/phpunit tests'; #PHP 
alias commit='git commit -a';
alias revert='git reset --hard';
##
test && commit || revert
Source

Also in Shell: