Create a new branch from develop and switch to it: $ARGUMENTS
<type>/<name>
| Type | Usage |
|---|---|
feat/<name> |
New feature |
fix/<name> |
Bug fix |
test/<name> |
Test code |
chore/<name> |
Config, dependencies |
refactor/<name> |
Code improvement |
design/<name> |
UI design change |
docs/<name> |
Documentation |
<name>: lowercase + kebab-case (e.g.feat/signin-validation)- Keep it short and descriptive
-
Check the current branch:
git rev-parse --abbrev-ref HEAD
-
Fetch the latest
develop:git fetch origin develop
-
Create and switch to the new branch from
develop:git checkout -b <type>/<name> origin/develop
-
Confirm the branch was created and is now active.
/create-branch feat/signup-form
/create-branch fix/token-refresh
/create-branch test/auth-unit-tests
/create-branch chore/vitest-config