Skip to content

Latest commit

 

History

History
130 lines (103 loc) · 3.12 KB

File metadata and controls

130 lines (103 loc) · 3.12 KB

Cheat Sheets

Quick reference guides for common commands and workflows. Copy, paste, and adapt as needed.

Available Cheat Sheets

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

How to Use These Cheat Sheets

1. Quick Reference

Keep them open in a browser tab during development.

2. Copy-Paste

All commands are copy-pasteable. Adapt values as needed.

3. Learn Patterns

Understand the patterns, don't just memorize commands.

4. Customize

Fork these cheat sheets and add your own project-specific commands.

5. Team Resource

Share with team members for consistent workflows.

Print-Friendly Versions

All cheat sheets are designed to print well:

  1. Open cheat sheet
  2. Print (Cmd/Ctrl + P)
  3. Save as PDF or print to paper
  4. Keep at desk for quick reference

Contributing

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

Quick Access

Most Used Commands:

Git:

git status                     # Check status
git add .                      # Stage all changes
git commit -m "message"        # Commit with message
git push                       # Push to remote

Cloudflare:

npm run dev                    # Local development
npm run build                  # Build for production
npm run deploy                 # Deploy to Cloudflare Pages

Chrome 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.