Git Watchtower can be configured through a wizard, config file, CLI flags, or environment variables. CLI flags take precedence over the config file for the current session.
On first run, Git Watchtower prompts you to configure settings interactively. Re-run it any time with:
Settings are saved to .watchtowerrc.json in your project directory.
Setting
Description
Default
server.mode
Server mode: static, command, or none
none
server.port
Dev server port (1-65535)
3000
server.staticDir
Directory to serve (static mode)
public
server.command
Dev server command (command mode)
""
server.restartOnSwitch
Restart server on branch switch
true
web.enabled
Enable web dashboard
false
web.port
Web dashboard port (1-65535)
4000
remoteName
Git remote name
origin
autoPull
Auto-pull when current branch has updates
true
gitPollInterval
How often to check for git updates (1000-300000ms)
5000
soundEnabled
Audio alerts for updates
true
visibleBranches
Number of branches shown in list (1-50)
7
casinoMode
Enable casino mode
false
"command" : " npm run dev " ,
All settings can be overridden from the command line:
Flag
Description
-m, --mode <mode>
Server mode: static, command, or none (default: none)
-p, --port <port>
Server port (default: 3000)
-n, --no-server
Shorthand for --mode none (default)
--static-dir <dir>
Directory for static file serving (default: public)
-c, --command <cmd>
Command to run in command mode (e.g., "npm run dev")
--restart-on-switch
Restart server on branch switch (default)
--no-restart-on-switch
Don’t restart server on branch switch
Flag
Description
-r, --remote <name>
Git remote name (default: origin)
--auto-pull
Auto-pull on current branch updates (default)
--no-auto-pull
Disable auto-pull
--poll-interval <ms>
Git polling interval in ms (default: 5000)
Flag
Description
--sound
Enable sound notifications (default)
--no-sound
Disable sound notifications
--visible-branches <n>
Number of branches to display (default: 7)
--casino
Enable casino mode
Flag
Description
-w, --web
Launch web dashboard alongside TUI
--web-port <port>
Web dashboard port (default: 4000)
Flag
Description
--init
Run the configuration wizard
-v, --version
Show version number
-h, --help
Show help message
GIT_POLL_INTERVAL = 10000 git-watchtower
Git Watchtower includes opt-in anonymous usage analytics. Telemetry preferences are stored separately from project config in ~/.git-watchtower/config.json. No data is collected unless you explicitly opt in.