I've typed this hundreds of times without thinking about it:
git add .
git commit -m "fix stuff"
git pushThe terminal says everything went through, GitHub updates, my deployment starts, and a minute later the new version is live. For a long time that was my whole mental model: I changed code, pushed it, and deployment happened.
Then I started building Spluur, and my own platform had to answer the question I'd been skipping. What does git push actually do, and how does it end up running my code on a server?
Push is smaller than I thought#
Git is not GitHub. Git is the version control system on my laptop. GitHub is a service that hosts Git repositories, and plenty of useful things happen without it: commits, branches, history, diffs, all offline.
That also means git commit saves nothing to GitHub. The commit lives in my local repository, and I can close the laptop and find it there tomorrow. git push origin main just means: update the remote called origin so its main branch catches up with mine. origin isn't special, only the usual name for the remote you cloned from.
It doesn't upload my folder either. Git works out which commits and file data the remote is missing and sends only those, then the remote moves its branch forward. Change one file in a 1,000-file repo and only that change travels.
So git push doesn't deploy anything. It updates a repository. Something else has to notice.
How GitHub tells Spluur#
That something is a webhook. Spluur registers an endpoint with GitHub, and when the repository changes, GitHub sends it an HTTP request saying which repository, which branch, which commit and who pushed.
git push → GitHub → POST /webhooks/github → Spluur APIMy first instinct was to build the app right there, inside the request handler. That's a bad idea. A build means cloning, installing dependencies and building an image, and it can take minutes. You don't want an HTTP request hanging open that long, and you definitely don't want a crash halfway through to take the request down with it.
So the API only verifies the webhook, creates a deployment job, puts it in a queue and returns quickly. A worker picks the job up later. If the worker dies, the job survives. If ten deployments arrive at once, the queue holds them. If I only want two builds running at a time, that's a limit I can enforce. This is the point where a Git command turns into infrastructure.
From source to something running#
The worker clones the repository and has to work out how to build it. Spluur uses Nixpacks for that: it looks at the project, decides whether it's Node or Python or something else, and builds an image.
This is also where things go wrong in boring ways. A missing lockfile, the wrong Node version, a broken dependency, not enough memory, a project that builds on the developer's laptop and fails in the build environment. Someone expects the platform to explain that failure, which is why build logs matter more than almost anything else in a deployment platform.
Once the build works, the image starts as a container, listening on something like port 3000 on an internal Docker network. Nobody on the internet can reach it yet.
Getting a browser to the container#
Someone visiting my-app.spluur.app doesn't connect to port 3000. The request arrives on port 80 or 443, where Traefik receives it, reads the hostname and works out which container owns that name. It also handles TLS, so each app doesn't have to manage its own certificate.
And before any of that, DNS has to point the domain at the right server. You can have a healthy container, a healthy proxy, a healthy API and a healthy database, and the browser will still show you nothing if DNS points somewhere else.
Put together, the line I used to think of as "push and wait" looks like this:
git push → GitHub → webhook → API → queue → worker
→ clone → build → Docker image → container → Traefik → DNS → liveThat isn't a perfectly straight line. There are retries, logs, Redis, databases, environment variables and health checks all around it. But the chain is enough to change how a three-command habit feels.
Why I keep asking this kind of question#
I'm not saying everyone needs to understand Git internals before using GitHub. Please keep using GitHub, Vercel, Railway and Render. They're good, and I use them too.
My point is smaller. If you depend on an abstraction long enough, it's worth knowing what it does for you once. For me, one tiny command led to webhooks, then queues, workers, builds, containers, Traefik and DNS. I didn't plan that tour. Each answer just raised the next question.
These days when I type git push I don't see a command any more. I see a trigger. And the questions I like best aren't "which tool should I use?" but the dumber ones: what actually happens when I press this button?