Create Branch
Create a new feature branch from a Jira ticket number.
Arguments
- •
$ARGUMENTS- The Jira ticket number (e.g., SECINT-111)
Instructions
Step 1: Checkout master
bash
git checkout master
Step 2: Pull latest changes
bash
git pull
Step 3: Create and checkout the feature branch
The branch name format is nclandrei-<ticket> where <ticket> is the lowercased ticket number.
bash
git checkout -b nclandrei-$(echo "$ARGUMENTS" | tr '[:upper:]' '[:lower:]')
Step 4: Confirm
Output the current branch to confirm:
bash
git branch --show-current