StepsEasy
Git New Branch - Example
Run
Reset
Destroy & Close
← Back to lesson
Code Editor
bash
# Create and switch to new branch git branch feature-login git checkout feature-login # Or do both in one command git checkout -b feature-login # List all branches git branch -a # Switch back to main git checkout main # Delete branch git branch -d feature-login
Result
Click "Run" to execute the code...
Loading runtime...
Ready
BASH | In-Browser Execution