#!/usr/bin/env bash newb() { git checkout -b $1 } cmt() { b=$(git symbolic-ref --short HEAD) f=${b/\//-}-${1}-${2}.txt touch $f git add $f git commit -m "$*" } newrepo() { dir=$1 rm -fr /tmp/_$dir mv ~/$dir /tmp/_$dir mkdir ~/$dir cd ~/$dir opt=$2 git init $opt } push() { b=$(git symbolic-ref --short HEAD) git push -u origin $b } newrepo machete-sandbox-remote --bare newrepo machete-sandbox git remote add origin ~/machete-sandbox-remote newb root cmt Root newb develop cmt Develop commit newb allow-ownership-link cmt Allow ownership links push newb build-chain cmt Build arbitrarily long chains git checkout allow-ownership-link cmt 1st round of fixes git checkout develop cmt Other develop commit push newb call-ws cmt Call web service cmt 1st round of fixes push newb drop-constraint # not added to definition file cmt Drop unneeded SQL constraints git checkout call-ws cmt 2nd round of fixes git checkout root newb master cmt Master commit push newb hotfix/add-trigger cmt HOTFIX Add the trigger push git commit --amend -m 'HOTFIX Add the trigger (amended)' cat >.git/machete <