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.
“Check my project and make sure none of my secret keys, installed packages, build files, or operating system junk files ever get uploaded to GitHub. Set things up correctly so only the files I actually want to share get pushed.”
“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?”