Branches: Parallel Universes of Your Project
“Create a new branch called feature/contact-form and switch to it”
Free AI prompt · The Optimize Book
A ready-to-use prompt from the chapter Git & Environments. Paste it into Claude, ChatGPT, Lovable, Bolt or any AI coding tool.
“I need to add my Stripe API key. Where do I put it so it stays secret?”
“Create a new branch called feature/contact-form and switch to it”
“Save my current progress with the message 'Add contact form with email validation'”
“Upload my latest changes to GitHub”
“Switch back to the main branch”
“Merge my feature/contact-form branch into main”
“Set up environment variables for my project so my database password doesn't get uploaded to GitHub”