php
in your pathgit
- your php projects should have phpunit installed
- download all files, rename them removing the
.sh
extension. chmod +x
each of them- copy
git-mrm
andgit-ddev
to a folder in your executable path e.g./usr/local/bin
- copy
pre-commit
andpre-push
to the.git/hooks
folder of any PHP projects you want to work with.
- the
pre-commit
hook will be run every time you attempt a commit - the
pre-push
hook will be run every time you attempt a push - you can use the shortcut
git mrm
to:- switch from your working branch to master
- pull remote master
- switch to your working branch
- merge the now-updated master into your working branch
- push your working branch to a remote branch named after it
- you can use the shortcut
git ddev
to:- do all git mrm things
- switch to your dev branch
- pull remote dev
- merge your working branch into dev
- push dev to remote dev
Tests for (in this order):