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
Generate a perfect .gitignore file for any tech stack — languages, frameworks, IDEs, and DevOps tools.
Select multiple stacks and get a merged, production-ready gitignore in seconds.
# .gitignore # Select technologies on the left to generate your gitignore file. # This file will be automatically merged from multiple templates.
.gitignore file tells Git which files, directories, or patterns to intentionally ignore when committing code. This prevents sensitive data (like API keys in .env), build artifacts (like node_modules/), cache files, OS-specific files (like .DS_Store), and IDE configuration from being accidentally committed. Using a proper gitignore keeps your repository clean, reduces merge conflicts, and protects sensitive information.
.gitignore file and place it in the root directory of your Git repository. The file must be named exactly .gitignore (starting with a dot). If you already have a repository, run git rm -r --cached . and then git add . to apply the new ignore rules to existing tracked files.
.gitignore. For example, a typical web developer might select Python, JavaScript, React, VS Code, and Docker.
*.log — ignores all files ending with .lognode_modules/ — ignores the entire directory!important.log — negates a pattern (don't ignore)**/temp/ — ignores temp/ anywhere in the tree# comment — lines starting with # are comments*, ?, [abc], and ** for recursive matching.
.gitignore won't stop tracking it. You need to untrack it first using:git rm --cached <file> (for a single file)git rm -r --cached <directory> (for a directory).DS_Store on macOS or Thumbs.db on Windows) and editor-specific files that you never want committed. Set it up with:git config --global core.excludesfile ~/.gitignore_global~/.gitignore_global with the patterns you want to ignore globally.
.gitignore file should be committed to your repository so that all collaborators share the same ignore rules. This ensures consistency across the team. It's one of the first files you should create and commit when starting a new project.
Quick reference for frequently used Git commands with examples. Searchable and categorized. A handy resource for all developers.
Type a line and see syllable count as you write. Generate nature-themed prompts. Poetry aid.
Enter a package name and version range to see all satisfying versions from the registry. Understand ^ and ~.
Create a random superhero with a unique name, power, weakness, and origin story. Fun creative writing prompt. All frontend.
Calculate grout needed (lbs or kg) based on tile size, grout joint, and area. Also recommend spacer size. Local estimator.
Simulate rolling dice for board games, RPGs, and decision making. Choose number of dice and faces. Fun, lightweight, and no download required.
Build a proper <meta name='viewport'> tag with width, initial‑scale, and user‑scalable options. Avoid common mobile rendering issues.
Calculate corrected (adjusted) age for premature infants based on birth date and due date. Important for developmental milestone tracking. Local only.
Input camera sensor, focal length, aperture, distance to get hyperfocal distance and DoF range. Visual chart.
Convert diopter strength to approximate magnification and working distance for macro photography.
Calculate how long it will take to pay off credit card debt with fixed monthly payments or a payoff goal. Understand interest costs fully.
Calculate how much pure ammonia to add to reach 4ppm for a fishless cycle. Safe start guide.
Calculate how many planks you need to cover an area given plank dimensions and gap. Quick carpentry estimator. Local only.
Calculate how much fertilizer to add based on desired N‑P‑K ppm and water volume. For hydroponics and soil growers.
Perform arithmetic on fractions and get simplified results. Handles mixed numbers and improper fractions. Step-by-step display. Educational and precise.
Watch the planets orbit the Sun in a top‑down 2D view. Adjust speed and zoom. Distances not realistic; beautiful model.
Enter tank volume and recommended dose to find exact ml or capfuls needed. Avoid overdosing fish.
Enter log pile dimensions to calculate cords and face cords. Also estimate heat content in BTUs by wood species. Local reference.
Interactive scale showing dB levels of everyday sounds with playable samples. Hearing safety.
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 projector throw distance or screen image size based on throw ratio. Visualize setup. Essential for home theater planning. Local.
Design a crystal grid by placing crystals on a sacred geometry template. Add notes. Screenshot your layout. Spiritual/art.
Enter standard dice notation (e.g., 2d8+3, 4d6k3) and see the roll result and individual dice. Must for tabletop RPG.
Calculate probability of k successes when sampling without replacement. Useful for quality control and card games.
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.
Track your subscriptions, calculate monthly and yearly totals, and find savings by pausing unused services. Local data.
Generate a realistic‑sounding exoplanet designation (e.g., Kepler‑442b) and a sci‑fi planet description. For worldbuilding.
Compute Poisson probabilities for a given mean rate. Ideal for call centers, traffic analysis. Instant chart.
Calculate how much water to change weekly to keep nitrates under control. Based on current nitrate level, desired level, and tank volume.
Calculate the probability of exactly k successes in n independent Bernoulli trials. Step-by-step result. Local.