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.
Estimate how much rope you need to restring a djembe and the number of verticals. Get traditional Mali weave instructions.
Type a line and see syllable count as you write. Generate nature-themed prompts. Poetry aid.
Enter desired pom-pom diameter to estimate yards needed and number of wraps. Quick craft math.
Compute the Euclidean distance between two points in 2D or 3D space. Also shows midpoint. Quick geometry helper.
Enter row length and seed spacing to calculate how many seeds/packets to buy. Reduce waste.
Select a vegetable and see its best companion plants and which to avoid. Visual grid with quick reference. Improve garden yield and health naturally.
Calculate how much fertilizer to add based on desired NβPβK ppm and water volume. For hydroponics and soil growers.
Select multiple languages and tools (Node, Python, Mac, Windows) and generate a combined .gitignore.
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.
A searchable list of essential Docker CLI commands for managing containers, images, and volumes. Copy-paste friendly. Always handy.
Enter a CSS value in vw/vh and see the actual pixel size at current viewport. Dynamic resize demo.
Enter two hex or decimal numbers and perform bitwise AND, OR, XOR, NOT, left/right shift. See results in binary.
Calculate how much liquid fertilizer concentrate to add per gallon of water based on desired N concentration.
Calculate how many vegetable plants fit in a given area using square foot gardening or row spacing. Visual plant grid. Plan your spring garden.
Calculate how much water to change weekly to keep nitrates under control. Based on current nitrate level, desired level, and tank volume.
Calculate water volume for flushing soil based on pot size. Includes recovery timeline reminders.
Calculate probability of k successes when sampling without replacement. Useful for quality control and card games.
Use your device microphone to measure approximate sound pressure level in dB. Not calibrated, for rough reference. Local only.
Convert between inches of mercury and hectopascals for altimeter setting. Essential for pilots.
Enter area to calculate how many epoxy floor kits you need. Consider priming coat.
Learn what water is safe (rain, distilled, low PPM) for pitcher plants and flytraps. Visual PPM scale.
Enter standard dice notation (e.g., 2d8+3, 4d6k3) and see the roll result and individual dice. Must for tabletop RPG.
Convert between dBm, milliwatts, and watts. Simple calculator for RF engineers and WiFi signal analysis. Instant local calculation.
Enter your exit weight and canopy size to calculate wing loading. Helps determine if you're within the safe recommended range.
Track your subscriptions, calculate monthly and yearly totals, and find savings by pausing unused services. Local data.
Select month and hour to see a simple star map with major constellations labeled. Educational astronomy fun.
Enter container height and get recommended depths for each layer (drainage rock, charcoal, moss, soil). Build a healthy miniature ecosystem.
Build perfect Open Graph meta tags for rich social media previews. Preview how your link will look on Facebook and LinkedIn. Structured data tools for better CTR.