Create and switch to new branch
Create a feature branch off main and switch to it in one step.
Creates a new branch and immediately checks it out in a single command. This is the standard git workflow for feature development - never commit directly to main.
When you need this: Before starting any new feature, bug fix, or experimental change.
Variables
Command
2 views
0 copies
Related in this category
Log in to save
Free account — save snippets into your own collections.