Install latest/stable of git-watchdog

Ubuntu 16.04 or later?

Make sure snap support is enabled in your Desktop store.


Install using the command line

sudo snap install git-watchdog

Don't have snapd? Get set up for snaps.

Channel Version Published

Details for git-watchdog

Package name

  • git-watchdog

License

  • MIT

Last updated

  • Yesterday - latest/stable

Source code


Report a bug


Report a Snap Store violation

Share this snap

Generate an embeddable card to be shared on external websites.

Read-only Git remotes while selected processes (e.g. AI agents) run

AI coding agents run commands with your permissions, including your SSH keys and Git credentials. A single unattended git push can force-push over shared history, delete a branch or publish unreviewed code, and that is hard to undo once it reaches the server.

git-watchdog removes push access while an agent is running. As long as a watched process is alive (by default the Claude CLI and Claude Desktop), it puts the remotes of your local repositories in read-only mode:

  • Pushing is blocked, so git push fails instead of reaching the server.
  • Fetching keeps working through a read-only access token, so the agent doesn't need your SSH key to pull.

When the process exits, the original remotes are restored exactly as they were. It guards against accidental pushes, not a determined attacker; see https://github.com/dobicinaitis/git-watchdog#security-notes

Revision Channel Version Published Build Commit Download SBOM

The build and commit information is derived from build infrastructure records.


Install git-watchdog on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the installing snapd documentation.


Where people are using git-watchdog