Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Git Pull WatchedNew to Visual Studio Code? Get it now.
Git Pull Watched

Git Pull Watched

Dhruv Bhagat

|
6 installs
| (0) | Free
Automatically run database migrations and scripts when git pull changes files. Works with Prisma, Mongo, and more.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Git Pull Watched

Run database migrations (or any command) automatically when git pull changes specific files.


Git Pull Watched saves you from the "Why is my app crashing?" loop. It watches for changes in your codebase—specifically ignoring your own manual edits—and notifies you when an external change (like a git pull) touches sensitive files like schema.prisma or migration scripts.

✨ Features

  • 👀 Smart Detection: Distinguishes between your manual saves (ignored) and external changes like git pull or branch switching.
  • ⚡️ Debounced Notifications: Groups multiple file changes into a single, clean notification.
  • 🚀 Pre-configured: Works instantly for Prisma and Mongo projects.
  • 🔧 Highly Configurable: Add your own rules for any file pattern and command.

🚀 Usage

Just install the extension. It will immediately start watching for changes to standard migration files.

When you run git pull and new migrations arrive:

  1. The extension detects the change.
  2. A notification appears: "Watched files changed. Do you want to run: npm run db:migrate?"
  3. Click Run Command, and it executes in a dedicated terminal.

⚙️ Configuration

The extension comes with sensible defaults, but you can add your own rules in settings.json:

"gitPullWatched.rules": [
  // Example: Run a script when Python requirements change
  {
    "patterns": ["**/*requirements.txt"],
    "command": "pip install -r requirements.txt"
  },
  // Example: Run a build when a specific config changes
  {
    "patterns": ["config/app-config.yaml"],
    "command": "npm run build:config"
  }
]

Default Rules (Built-in)

Pattern Command Use Case
prisma/schema.prisma
prisma/migrations/**
npm run db:migrate Prisma ORM
package-lock.json
yarn.lock
pnpm-lock.yaml
npm install Node.js / React
requirements.txt
Pipfile.lock
poetry.lock
pip install -r requirements.txt Python
**/*.mongo.js npm run mongo:push MongoDB Scripts

📦 Installation

  1. Open VS Code.
  2. Go to Extensions tab.
  3. Search for Git Pull Watched.
  4. Click Install.

📄 License

MIT © Dhruv Bhagat

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft