Watch: Try a new feature on a branch so main stays safe | Vovy
Watch Vovy do it on a Mac: "Make a branch for the new pricing page so I don't break the live app". Vovy creates a feature branch, pushes it to GitHub, and shows how to switch back to main anytime, so experiments never touch your live app.
"Make a branch for the new pricing page so I don't break the live app"
Vovy creates a feature branch, pushes it to GitHub, and shows how to switch back to main anytime, so experiments never touch your live app.
What happens in the video
- Start from a clean main: Vovy checks you have no unsaved changes and pulls the latest main, so your branch starts from the current version.
- Create the branch: Vovy runs git switch -c pricing-page. A branch is a parallel copy of your code where changes cannot affect main.
- Work on it: Vovy opens Cursor on the branch and shows the branch name in the status bar, so you always know where you are.
- Push it to GitHub: Vovy pushes the branch with git push -u origin pricing-page, which backs it up and lets hosts build a preview.
- Show how to switch: A card shows your branches and the one command to hop back to main, plus when to open a pull request.
Read the step-by-step guideLoading...