post-commit
: Triggered after commitspost-checkout
: Triggered after branch checkoutsvt git event
sends repository path to VibeTunnel server/api/git/event
endpoint:
Terminal [checkout: feature-branch]
)installGitHooks()
in web/src/server/utils/git-hooks.ts
POST /api/git/event
: Receives git event notificationsPOST /api/worktrees/follow
: Enables follow mode and installs hooksGET /api/git/follow
: Checks follow mode statusweb/src/server/utils/git-hooks.ts
web/src/server/routes/git.ts
(lines 189-481)web/src/server/routes/worktrees.ts
(lines 580-630)web/bin/vt
(git event command)vt
command is in PATHls -la .git/hooks/post-*
chmod +x .git/hooks/post-*
git config vibetunnel.followBranch
cat .git/hooks/post-checkout