Git Cheatsheet - Online Common Commands Reference
Quick reference for frequently used Git commands with examples. Searchable and categorized. A handy resource for all developers.
UD5 Toolkit
Parse, visualize, and validate npm-style semver ranges β ^1.2.3, ~1.2.3, >=1.0.0 <2.0.0, and more.
SemVer uses a three-part version number: MAJOR.MINOR.PATCH. Increment MAJOR for breaking changes, MINOR for new backward-compatible features, and PATCH for backward-compatible bug fixes. Optional pre-release labels (e.g., 1.0.0-alpha.1) and build metadata (e.g., 1.0.0+build.123) can be appended.
^ (caret) mean in npm version ranges?The caret ^ allows changes that do not modify the leftmost non-zero digit. For example, ^1.2.3 means >=1.2.3 <2.0.0 β compatible with 1.x.x. For ^0.2.3, it means >=0.2.3 <0.3.0, and for ^0.0.3 it pins to >=0.0.3 <0.0.4. This is npm's default when you run npm install.
~ (tilde) mean?The tilde ~ is more conservative. ~1.2.3 means >=1.2.3 <1.3.0 β only patch-level changes are allowed. ~1.2 means >=1.2.0 <1.3.0, and ~1 means >=1.0.0 <2.0.0. Use tilde when you want stricter control over dependency updates.
^ and ~ in practice?^1.2.3 accepts any 1.x.x version β₯1.2.3 (including 1.9.9), while ~1.2.3 only accepts versions from 1.2.3 up to (but not including) 1.3.0. Use ^ for libraries with stable APIs; use ~ for dependencies where you want minimal change risk.
By default, npm ranges do not match pre-release versions unless the range itself specifies a pre-release tag. For example, ^1.2.3 will not match 1.3.0-beta.1, but ^1.2.3-beta will match 1.3.0-beta.5. This prevents accidental upgrades to unstable releases.
1.2.x or *?1.2.x (or 1.2.*) matches any version >=1.2.0 <1.3.0 β equivalent to ~1.2.0. * (or just empty) matches any version at all (>=0.0.0). Use wildcards sparingly as they can lead to unpredictable dependency resolution.
1.2.3 - 2.3.4 work?A hyphen range like 1.2.3 - 2.3.4 translates to >=1.2.3 <=2.3.4 (inclusive on both ends). Partial versions are filled in: 1.2 - 2.3.4 becomes >=1.2.0 <=2.3.4. This syntax is common in package.json dependencies.
||?Yes! Use || to specify alternative ranges. For example, ^1.0.0 || ^2.0.0 matches any version in the 1.x range (β₯1.0.0) or the 2.x range (β₯2.0.0). This is useful when your package supports multiple major versions of a dependency.
While ranges like ^1.2.3 provide flexibility, they can introduce non-deterministic builds. Using a lockfile (package-lock.json or yarn.lock) pins exact versions while still allowing range-based resolution during updates. Combine ranges in package.json with a committed lockfile for the best balance of flexibility and reproducibility.
An empty string or * matches any version. An invalid expression (like ^^1.0 or abc) will be treated as an error by npm and most package managers. Always validate your ranges before publishing package.json to avoid unexpected resolution failures.
Quick reference for frequently used Git commands with examples. Searchable and categorized. A handy resource for all developers.
Calculate grout needed (lbs or kg) based on tile size, grout joint, and area. Also recommend spacer size. Local estimator.
Select your OS, IDE, and programming language to generate a complete .gitignore file. No typing required.
Type a line and see syllable count as you write. Generate nature-themed prompts. Poetry aid.
Calculate resistor values for transistor fixed bias or voltage divider configuration. Quick quiescent point analysis.
Check if a number of the form 2^pβ1 is a Mersenne prime. Quick LucasβLehmer test simulation for small p.
Input camera sensor, focal length, aperture, distance to get hyperfocal distance and DoF range. Visual chart.
Calculate how much fertilizer to add based on desired NβPβK ppm and water volume. For hydroponics and soil growers.
Simulate rolling dice for board games, RPGs, and decision making. Choose number of dice and faces. Fun, lightweight, and no download required.
Enter a CSS value in vw/vh and see the actual pixel size at current viewport. Dynamic resize demo.
See a live VU meter of your microphone's input level. Test if your mic is working and adjust gain. Privacyβfriendly.
Estimate how much agricultural lime or elemental sulfur to add to change soil pH by a target amount. Based on soil type and current pH. Educational.
Calculate antenna element lengths for a given frequency (or vice versa). Supports 1/4 wave, 1/2 wave, dipole. Useful for ham radio. Local only.
Calculate the output voltage and resistor values for a voltage divider circuit. Includes schematic. Handy for electronics hobbyists and engineers.
Learn what water is safe (rain, distilled, low PPM) for pitcher plants and flytraps. Visual PPM scale.
Calculate how long it will take to pay off credit card debt with fixed monthly payments or a payoff goal. Understand interest costs fully.
Track your subscriptions, calculate monthly and yearly totals, and find savings by pausing unused services. Local data.
Calculate how many planks you need to cover an area given plank dimensions and gap. Quick carpentry estimator. Local only.
Find the optimal TV size for your room or the best viewing distance based on screen size and resolution (1080p, 4K, 8K). Simple THX/SMPTE reference.
Enter two hex or decimal numbers and perform bitwise AND, OR, XOR, NOT, left/right shift. See results in binary.
Calculate how many vegetable plants fit in a given area using square foot gardening or row spacing. Visual plant grid. Plan your spring garden.
Enter log pile dimensions to calculate cords and face cords. Also estimate heat content in BTUs by wood species. Local reference.
Understand how !important behaves inside @layer vs unlayered styles. Interactive example. Avoid common pitfalls.
Find out how large you can print based on image resolution in pixels. Understand DPI and megapixels.
Calculate how much pure ammonia to add to reach 4ppm for a fishless cycle. Safe start guide.
Compute the Euclidean distance between two points in 2D or 3D space. Also shows midpoint. Quick geometry helper.
Enter standard dice notation (e.g., 2d8+3, 4d6k3) and see the roll result and individual dice. Must for tabletop RPG.
Rotate a 3D cube on your phone using the Gyroscope API. See angular velocity around each axis. Amazing sensor demo.
Calculate corrected (adjusted) age for premature infants based on birth date and due date. Important for developmental milestone tracking. Local only.
Perform arithmetic on fractions and get simplified results. Handles mixed numbers and improper fractions. Step-by-step display. Educational and precise.