gcf 1111 create-user-managment
This will create a new branch feature/PRJ-1111/create-user-managment
| #!/bin/bash | |
| #Change this to your project short name | |
| PROJECT_SHORT_NAME=PRJ | |
| if [ -z "$1" ] | |
| then | |
| echo "Ticket number missing"; | |
| exit 1; | |
| fi | |
| re='^[0-9]+$' | |
| if ! [[ "$1" =~ $re ]] ; then | |
| echo "First argument should be a number of the ticket"; | |
| exit 1; | |
| fi | |
| if [ -z "$2" ] | |
| then | |
| echo "Short description missing"; | |
| exit 1; | |
| fi | |
| git checkout -b feature/"$PROJECT_SHORT_NAME"-"$1"/"$2" |