.gitignore: Your "Do Not Track" List
“Check my .gitignore file and make sure it includes .env.local, node_modules, and .next. If I do not have a .gitignore file, create one with all the standard entries for a Next.js project.”
Free AI prompt · The Code Book
A ready-to-use prompt from the chapter Git Basics. Paste it into Claude, ChatGPT, Lovable, Bolt or any AI coding tool.
“I want to try adding [describe feature] to my project without breaking what I have now. Help me create a new Git branch, make the changes there, and then merge it back into main when it works.”
“Check my .gitignore file and make sure it includes .env.local, node_modules, and .next. If I do not have a .gitignore file, create one with all the standard entries for a Next.js project.”
“I just created a new project. Help me initialize Git, create a .gitignore file with the right entries for a Next.js project, connect it to a new GitHub repository, and push my first commit. Walk me through every step.”
“Show me what files have changed since my last commit and explain what each change does in plain English. I want to understand what my AI tool modified before I commit.”
“Set up a new Next.js project with TypeScript, Tailwind CSS, and App Router. Create a clean homepage with a [header/hero/features] layout.”
“Convert my single-page app into multiple pages with proper navigation. Add routes for [home, about, dashboard, settings].”
“Make my website fully responsive so it looks great on phones, tablets, and desktops. Use Tailwind CSS breakpoints and make sure the navigation works on mobile with a hamburger menu.”