Developer reference

Developer cheat sheetsfor syntax you actually use

Choose a topic, filter its entries and open a sourced example before copying it.

Developer cheat sheets

Search this topic

Matching entries

Selected entry

git switch -c

Create a new branch and switch to it in one command; it does not change the current commit's files.

Example

git switch -c feature/login

Before using: Read the command and check your repository before running it. This page does not execute Git.

Sources: Git

Search and filtering run locally in this page; a source opens only when you choose its link.

Entry group

Showing 7 of 7 entries

Open Git command builder

Developer cheat sheets help when you remember the task but not the exact flag, field order or unit. Start with Git, then switch to regex, Cron, chmod, CSS or SQL without leaving the page.

These programming cheat sheets keep short explanations beside real examples. Use this developer quick reference to inspect a command before copying it; the page never runs code against your system.

Why use these developer cheat sheets

The example stays attached to its scope and source.

One search model across six topics

A Git command cheat sheet and a regex cheat sheet usually live on separate pages. These developer cheat sheets let you switch topics and narrow the visible entries without sending a query to a server.

A selected topic and local search narrow many reference cards to one matching syntax example

Dialect differences remain visible

SQL examples place PostgreSQL, MySQL and SQLite type choices side by side. You can inspect the difference before copying a declaration rather than assuming one name has identical storage semantics everywhere.

Three database columns display distinct type representations instead of one universal SQL type

Find a snippet without losing its context

01

Switch topic without opening another page

The Git topic is open by default. Choosing Cron or SQL resets the search and group so a hidden filter from the previous topic cannot make the new list look empty.

02

Search syntax and explanations together

Typing filters the current topic immediately, including code, examples and descriptions. The group chips narrow the same list; there is no submit step or network request.

03

Read the source before copying

Open a result to see its example, scope note and official source. Developer cheat sheets do not execute a command, test a regex or migrate a database for you.

What the reference contains

Git without a dangerous shortcut list

Inspect, branch, stage, fetch and undo entries distinguish unstaging from reverting a shared commit. The page does not recommend reset --hard as a casual fix.

JavaScript regex scope

Anchors, digit classes, named groups and lazy quantifiers show JavaScript examples with a dialect note; the linked tester handles actual input.

Five-field Cron, not Quartz

Examples state the minute/hour/day fields and call out the OR relationship between restricted day-of-month and day-of-week values.

Three SQL storage models

Boolean, JSON, decimal and time entries compare PostgreSQL, MySQL and SQLite instead of presenting a fictional universal type.

Scope and limits of the examples

Reference, not execution
A copied Git or chmod command runs only if you paste it into your own terminal. SQL examples are labeled comparisons, not executable migration scripts.
Syntax belongs to a dialect
Regex examples use JavaScript; Cron uses a five-field user crontab; SQL types differ across PostgreSQL, MySQL and SQLite. Other engines can reject or reinterpret the same text.
Curated, not exhaustive
This developer quick reference covers selected common entries. Missing commands, CSS units or SQL types are outside this list, not invalid; follow the linked official manuals for full definitions.

Developer cheat sheets: common questions

What is the difference between git reset and git revert?

Reset moves a branch tip and can rewrite local history; revert adds a new commit that reverses an earlier one. For a commit others may already have, inspect the history and consider revert. These developer cheat sheets show revert rather than a destructive reset recipe.

How do I undo the last commit?

If the commit was shared, git revert creates a reversing commit. If it is only local, Git has reset options with different effects on the index and working tree; read Git's reset documentation before choosing one.

What is the difference between greedy and lazy quantifiers?

A greedy quantifier first tries to consume more input; a lazy one tries less. In JavaScript, adding ? after + or * makes it lazy. Test against your real input because later pattern parts still affect the final match.

What is the difference between (?:...) and (...)?

Both group a subpattern, but (...) captures the matched text while (?:...) does not create a capture group. Use a named capture when the returned value needs an explicit name.

Are these patterns the same in JavaScript, Python, and PCRE?

No. This regex cheat sheet uses JavaScript RegExp syntax. Flags, escaping and some features vary by engine; check the documentation for the engine that will run your expression.

Found an outdated example?

Use the developer cheat sheets now

Choose a topic, inspect the source and copy only the syntax that fits your environment. Developer cheat sheets stay available without a login or network search.