Quick Start
Installation
Section titled “Installation”# Global install (recommended)npm install -g git-watchtower
# Or run directly with npxnpx git-watchtowerStart Monitoring
Section titled “Start Monitoring”# Navigate to any git repositorycd your-project
# Start Git Watchtowergit-watchtowerOn first run, you’ll be guided through a configuration wizard to set your preferred server mode, port, and notification preferences.
# Run with default settings (or saved config)git-watchtower
# Run without dev server (branch monitoring only)git-watchtower --no-server
# Launch with web dashboardgit-watchtower --web
# Specify custom portsgit-watchtower --port 8080 --web --web-port 9000
# Wrap your own dev servergit-watchtower --mode command -c "npm run dev"
# Re-run the configuration wizardgit-watchtower --init
# Show helpgit-watchtower --helpHow It Works
Section titled “How It Works”- Polling — Runs
git fetchperiodically to check for updates - Detection — Compares commit hashes to detect new commits, branches, and deletions
- Auto-pull — When your current branch has remote updates, pulls automatically (if enabled)
- Server — Depending on mode, serves static files, runs your command, or does nothing
- Live Reload — In static site mode, notifies connected browsers via SSE when files change
- Web Dashboard — Optional browser UI that mirrors and extends the TUI via SSE
Requirements
Section titled “Requirements”- Node.js 20.0.0 or higher
- Git installed and in PATH
- Git remote configured (any name, defaults to
origin) - Terminal with ANSI color support