Quick reference guides for common commands and workflows. Copy, paste, and adapt as needed.
Essential git commands organized by workflow:
- Daily commands (status, add, commit, push)
- Branching and merging
- Undo and recovery (revert, reset, stash)
- Advanced operations (cherry-pick, rebase, bisect)
- Troubleshooting
Use when:
- Need quick git command syntax
- Forgot specific flags/options
- Recovering from git mistakes
- Learning git workflows
Wrangler commands for Cloudflare development:
- Pages deployment
- Workers development
- D1 database operations
- KV storage
- R2 object storage
- Common workflows
Use when:
- Deploying to Cloudflare Pages
- Working with Cloudflare services
- Debugging deployment issues
- Setting up new projects
AI prompt templates for frequent tasks:
- Feature implementation
- Debugging and troubleshooting
- Refactoring
- Testing
- Documentation
- Code review
Use when:
- Starting new feature
- Stuck on a problem
- Need AI to help debug
- Want consistent prompt quality
- Training team on effective prompts
Commands and shortcuts for debugging:
- Chrome DevTools shortcuts
- Terminal debugging commands
- Network inspection
- Performance profiling
- Console tricks
- Mobile debugging
Use when:
- Debugging browser issues
- Performance problems
- Network requests failing
- Layout/styling bugs
- Mobile-specific issues
Keep them open in a browser tab during development.
All commands are copy-pasteable. Adapt values as needed.
Understand the patterns, don't just memorize commands.
Fork these cheat sheets and add your own project-specific commands.
Share with team members for consistent workflows.
All cheat sheets are designed to print well:
- Open cheat sheet
- Print (Cmd/Ctrl + P)
- Save as PDF or print to paper
- Keep at desk for quick reference
Found a useful command not listed? Add it to the appropriate cheat sheet:
- Keep it concise
- Explain when to use it
- Include example with realistic values
- Organize by workflow/category
Most Used Commands:
Git:
git status # Check status
git add . # Stage all changes
git commit -m "message" # Commit with message
git push # Push to remoteCloudflare:
npm run dev # Local development
npm run build # Build for production
npm run deploy # Deploy to Cloudflare PagesChrome DevTools:
Cmd/Ctrl + Shift + C # Inspect element
Cmd/Ctrl + Shift + M # Toggle mobile view
Cmd/Ctrl + Shift + P # Command palette
F12 # Open DevTools
Remember: These are starting points. Adapt commands to your specific project and workflow.