12345678910111213141516171819202122232425262728293031323334 |
- # place in root of zd code & change some vars & enjoy it!
- # exe in ~/
- # $1: bin name
- # $2: branch name
- # $3: checkout commit
- function do_one {
- mkdir $1
- cd $1
- pwd
- 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 ..
- }
- cd zd_code
- branchname=test-server2
- cd p2p-back
- do_one zd_back_bin $branchname 8479c6f459f3478fba57aff48cf50f22fb4e271d
- cd ..
- cd p2p-front
- do_one zd_front_bin $branchname 2f58670d1dea2a7fac3c436428baafed9d0ab10b
- cd ..
- cd piaojuke_czbank_mobile
- do_one zd_mobile_bin $branchname a62634238f665b96d1f46ce62167f627fc1d0a78
- cd ..
|