Branches: Parallel Universes of Your Project
“Save my current progress with the message 'Add contact form with email validation'”
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.
“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”
“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”