2017-08-25 10:35:25 -05:00
|
|
|
read -p "Commit message? " cm;
|
|
|
|
|
git fetch --all;
|
2017-08-21 20:30:08 +00:00
|
|
|
|
2017-08-25 10:35:25 -05:00
|
|
|
#copy dev to history to ensure we don't lose changes if something goes wrong
|
|
|
|
|
git checkout history;
|
2022-09-08 07:12:27 -05:00
|
|
|
git reset --hard qual;
|
2017-08-25 10:35:25 -05:00
|
|
|
git push --force;
|
|
|
|
|
|
|
|
|
|
#merge to master
|
2022-09-08 07:12:27 -05:00
|
|
|
git checkout -B prod origin/master;
|
|
|
|
|
git merge --squash qual;
|
2017-08-25 10:35:25 -05:00
|
|
|
git commit -am "$cm";
|
|
|
|
|
git push;
|
|
|
|
|
|
|
|
|
|
#clean dev
|
2022-09-08 07:12:27 -05:00
|
|
|
git checkout qual;
|
|
|
|
|
git reset --hard prod;
|
2017-08-25 10:35:25 -05:00
|
|
|
git push --force;
|
2022-09-08 07:12:27 -05:00
|
|
|
git reset --hard origin/qual;
|