Claude Code automatically executes local "git" file...

Resolved 💬 3 comments Opened Aug 2, 2025 by sinasan Closed Jan 3, 2026

Local executable "git" is executed on Claude Code startup

When starting Claude Code in a directory containing an executable file named "git", this file is automatically executed.

Steps to reproduce:

  1. Create executable file named "git" with shell commands
  2. Start claude in same directory
  3. File starts automatically and without feedback

Result: Commands in local "git" file run with user privileges

Expected: No automatic execution of local files

Environment: Linux

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗