Branch It is a Visual Studio Code extension that simplifies creating Git branches by guiding users through selecting a branch type, entering an optional ticket number, and specifying a branch name.
Features
Branch Type Selection: Choose from predefined branch types such as feature, bugfix, hotfix, or docs.
Optional Ticket Number: Enter a ticket or card number for additional branch context (optional).
Branch Name Input: Define your branch name following naming conventions.
Automated Git Branch Creation: Automatically create a new Git branch based on the selected options.
Usage
Activate the Command: Open the command palette in VSCode (Ctrl+Shift+P or Cmd+Shift+P on macOS) and run the command Branch It: Select Branch Type.
Select Branch Type: A dropdown will prompt you to choose the type of branch you want to create (e.g., feature, bugfix, etc.).
Optional Ticket Number: Input a ticket or card number (optional). If no ticket number is provided, the branch will be created without it.
Input Branch Name: Enter the desired name for your branch. The name will be sanitized to contain only lowercase letters, numbers, and hyphens.
Branch Creation: The extension will execute the Git command to create the new branch in your workspace.
Branch Naming Convention
The branch name will be formatted as:
/-
If no ticket number is provided, the format will be:
/
For example:
With a ticket number: feature/123-dashboard-update
Without a ticket number: hotfix/fix-login-bug