Switch branch.
Environment follows.

Donk watches your git branch. Switch to feature/payments and the environment profile switches with it. No manual changes.

You're on the main branch with the dev profile active. You switch to feature/payments which needs different environment variables — a Stripe test key, a different database, a webhook URL. Normally you'd switch the env file manually, maybe forget, and spend ten minutes debugging why payments aren't working before realizing you're still on the dev config.

Donk's Git Branch Watcher monitors the active branch in your project's git repository. Map branches to environment profiles — main → dev, staging → staging, feature/* → feature-dev. When you switch branches, Donk switches the profile and hot-reloads the server in about a second.

  • Map git branches to environment profiles — exact match or glob patterns
  • Auto-switch when you git checkout or switch branches in VS Code
  • Hot-reload in ~1 second — no full restart
  • Glob patterns — feature/* matches all feature branches
  • Optional: auto-run commands on branch switch (e.g., npm install, migrations)
  • Configurable in donk.toml — commit branch-profile mappings to the repo
🎬

Video: 25–35 seconds. Git checkout to a different branch → profile auto-switches → server restarts with different env.

Download Donk

Windows 10/11 · ~100 MB · No dependencies

Download for Windows