Dev Cheat Sheet
Quick-reference notes for things I always look up.
Conventional Commits
Commit message prefixes from the Conventional Commits spec. feat and fix are the only types that directly affect the semver version.
Git Commands
Everyday git workflow commands.
git checkout <branch>-bSwitch to a branch. Add -b to create it first.
git add .Stage all changes in the working directory.
git commit -m "<msg>"Commit staged changes with a message.
git pullFetch and merge from the tracked remote branch.
git pull origin mainFetch and merge from origin/main explicitly.
git fetchDownload remote changes without merging.
git pushPush commits to the remote.
Yarn
Common Yarn package manager commands.
yarnInstall all dependencies.
yarn devStart the development server.
yarn buildBuild for production.
yarn startRun the production build.
yarn add <pkg>Add a dependency.
yarn add -D <pkg>Add a dev dependency.
yarn remove <pkg>Remove a package.
Hex Color from Image (Mac)
Pick a color from anywhere on screen and get its hex value.
Open Digital Color Meter (Spotlight: ⌘ Space)
Hover over the color, then press ⇧⌘C to copy the color values
Pro tip
In Digital Color Meter, go to View → Display Values to switch between RGB and Hexadecimal values