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.
“Switch back to the main branch”
“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”
“Merge my feature/contact-form branch into main”
“I need to add my Stripe API key. Where do I put it so it stays secret?”
“Set up environment variables for my project so my database password doesn't get uploaded to GitHub”