Tooling
The tools around the code: git, terminals, SSH, tmux, dev containers, and the Claude Code features that save the most time.
180 posts · page 4 of 8
"fatal: not a git repository": What It Means and How to Fix It
Git can't find a .git folder in the current directory or any parent. The usual causes — wrong folder, never ran git init, a deleted or broken .git, Docker builds and CI without Git history, safe.directory ownership checks — and the fix for each.
What Is node_modules? (And When to Delete It)
node_modules is the folder where npm installs your project's dependencies. Why it's so big, why it must never go into Git, when deleting it and reinstalling fixes things, the right commands on Mac, Linux and Windows, and how to reclaim disk space across old projects.
"LF Will Be Replaced by CRLF": What the Git Warning Means and How to Fix It
Windows ends lines with CRLF, macOS and Linux with LF, and Git warns when it converts between them. What the warning means, whether it's a problem, the right core.autocrlf setting for your OS, and the .gitattributes file that fixes line endings for the whole team.
How to Test an API: Tools and a Simple Checklist for Beginners
Testing an API means sending requests and checking the responses — by hand with curl, Postman, Bruno or your editor, and automatically with tests that run on every change. What to check (status codes, body, auth, bad input), example tests, and a checklist.
The GitHub MCP Server: Setup With Claude Code and What It Can Do
GitHub's official MCP server lets AI tools read and act on your repositories: issues, pull requests, Actions runs, code search and security alerts. How to connect it to Claude Code (remote or Docker), choose toolsets, use read-only mode, and keep your token safe.
GitHub Actions Secrets: How to Store and Use Them Safely
GitHub Actions secrets keep API keys, tokens and passwords out of your code while letting workflows use them. How to add repository, environment and organisation secrets, use them in a workflow, secrets vs variables, the fork and pull_request_target pitfalls, and OIDC instead of long-lived keys.
Deploy to a VPS With GitHub Actions: Push to Main, Ship to Production
Automate deploys to your own server: run tests in GitHub Actions, then SSH in and run your deploy script — or build a Docker image and pull it. Deploy keys, secrets, known_hosts, environments with approval, rollbacks, and keeping the SSH key's power limited.
How to Squash Commits in Git (Three Ways)
Squashing combines several commits into one so history stays readable. Three ways to do it — git reset --soft, interactive rebase, and GitHub's 'Squash and merge' — when each fits, how to push afterwards safely, and when you shouldn't squash.
git reset vs git revert: Which One Should You Use to Undo?
git revert undoes a commit by adding a new commit, safe for shared branches; git reset moves your branch back, rewriting history. When to use each, the three reset modes (--soft, --mixed, --hard), recovering from a bad reset with reflog, and git restore.
git remote add origin: Connect Your Project to GitHub
What a Git remote is, what 'origin' means, and how to connect a local project to a new GitHub repository with git remote add origin and git push -u. Plus how to view, change and remove remotes, and fix 'remote origin already exists'.
Git Push Rejected: "Updates Were Rejected Because the Remote Contains Work"
git push fails with "rejected — fetch first" or "non-fast-forward" when GitHub has commits you don't. How to pull and combine them safely, when force-pushing is fine and when it destroys work, and the other rejection messages: protected branches, large files, and secrets.
"Permission Denied (publickey)" on GitHub: How to Fix It
GitHub rejected your SSH key — either you don't have one, it isn't added to GitHub, your SSH agent isn't offering it, or you're using the wrong account. A step-by-step fix with ssh -T, plus the HTTPS alternative and the 'Support for password authentication was removed' error.
Git Fetch vs Git Pull: What's the Difference?
git fetch downloads new commits from GitHub without touching your work. git pull downloads them and immediately merges (or rebases) them into your branch. When to use each, what origin/main actually is, and how to see what changed before you pull.
Git "Detached HEAD" Explained: What It Is and How to Get Out
"You are in 'detached HEAD' state" means you've checked out a specific commit instead of a branch. It's safe to look around; commits made here are easy to lose. How you got there, how to get back, and how to save work you did while detached.
git clone Explained: Copy a Repository to Your Computer
git clone downloads a full copy of a repository, history and all. How to clone with HTTPS or SSH, clone into a specific folder or branch, shallow clones for big repos, private repositories and authentication, and what to do right after cloning.
Git Cherry-Pick Explained: Copy One Commit to Another Branch
git cherry-pick copies a specific commit from one branch onto another — handy for getting a bug fix into production without merging everything else. How to use it, picking ranges, handling conflicts, and when a merge is the better choice.
git bisect: Find the Commit That Broke Your App
Something worked last week and doesn't now. git bisect binary-searches your history to find the exact commit that introduced a bug in a handful of steps. Manual bisecting, automating it with git bisect run and a test script, skipping untestable commits, and using it with AI agents.
Fork vs Clone: What's the Difference on GitHub?
Cloning copies a repository to your computer; forking copies it to your own GitHub account. When you need each, the fork-then-clone workflow for contributing to open source, keeping a fork up to date with upstream, and forks vs branches.
ESM vs CommonJS: import vs require and the Errors Between Them
JavaScript has two module systems. CommonJS uses require and module.exports; ES modules use import and export. How Node decides which a file is, and how to fix 'Cannot use import statement outside a module', 'require is not defined', ERR_REQUIRE_ESM and __dirname is not defined.
Docker vs Docker Compose: What's the Difference?
Docker runs individual containers; Docker Compose describes and runs a group of containers that work together — your app, its database and a cache — from one YAML file. How they relate, the same setup with and without Compose, and the commands you'll use.
Docker Commands Cheat Sheet: The 40 You'll Actually Use
A practical Docker cheat sheet: running and stopping containers, viewing logs, getting a shell inside, building and tagging images, volumes, networks, Docker Compose, and cleaning up disk space — with what each command does in plain English.
Dependabot Explained: Automatic Security and Version Updates on GitHub
Dependabot watches your project's dependencies, alerts you to known vulnerabilities and opens pull requests to update them. The three features (alerts, security updates, version updates), a dependabot.yml example with grouping and cooldowns, and how to handle the PRs without drowning.
How to Delete a Git Branch (Local and Remote)
The commands to delete a Git branch on your computer and on GitHub: git branch -d vs -D, git push origin --delete, cleaning up stale remote-tracking branches with fetch --prune, deleting merged branches in bulk, and recovering a branch you deleted by mistake.
Cursor vs GitHub Copilot: Which AI Coding Assistant Is Better for You?
Cursor is a standalone AI code editor; GitHub Copilot is an AI assistant that plugs into the editor you already use and into GitHub itself. How they compare on autocomplete, agents, models, GitHub integration and pricing — and how to pick.