15 lines
235 B
Bash
Executable File
15 lines
235 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ $# != 1]
|
|
then
|
|
echo "Usage: scripts/new_release BRANCH_NAME"
|
|
exit 1
|
|
fi
|
|
|
|
NAME=$1
|
|
echo "Creating new release: $NAME"
|
|
|
|
git push origin origin:refs/heads/$NAME
|
|
git fetch origin
|
|
git checkout --track -b $NAME origin/$NAME
|