21 lines
369 B
Bash
21 lines
369 B
Bash
|
#!/bin/bash -x
|
||
|
|
||
|
if [ "$1" == "guimaster" ]; then
|
||
|
git checkout devel
|
||
|
git branch -D guimaster
|
||
|
git branch guimaster
|
||
|
git checkout guimaster
|
||
|
git push --set-upstream --force origin guimaster
|
||
|
exit
|
||
|
fi
|
||
|
|
||
|
if [ "$1" == "master" ]; then
|
||
|
git checkout devel
|
||
|
git branch -D master
|
||
|
git branch master
|
||
|
git checkout master
|
||
|
git push --set-upstream --force origin master
|
||
|
exit
|
||
|
fi
|
||
|
|