# place in root of zd code & change some vars & enjoy it! # $1: bin name # $2: branch name # $3: checkout commit function do_one { mkdir $1 cd $1 git init git remote add origin git@121.40.183.99:$1.git git fetch git checkout $3 -b $2 git branch -d master git push origin $2 git branch --set-upstream $2 origin/$2 cd .. } branchname=test5 cd p2p-back do_one testing $branchname ccf97e2037d330d504cd1edd14d0aaf536b403bd cd .. cd p2p-front do_one testing2 $branchname 603d5af52e270da0f1590d3d174a8941b132259d cd .. cd piaojuke_czbank_mobile do_one testing2 $branchname 603d5af52e270da0f1590d3d174a8941b132259d cd ..