New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@zgo/git-dir

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zgo/git-dir

Specify the parent folder and execute the git command cyclically for subfolder

latest
Source
npmnpm
Version
2.1.0
Version published
Maintainers
1
Created
Source

Git-Dir

A CLI tool to execute git commands recursively in all subdirectories that contain a .git folder.

Installation

npm install -g @zgo/git-dir

The package will automatically install the correct binary for your platform (Linux, macOS, Windows) and architecture (x64, arm64).

Usage

git-dir [-d directory] <git-command> [git-args...]

Options

  • -d directory: Specify the parent directory to search for git repositories (default: current directory)

Examples

# Check status of all git repos in current directory
git-dir status

# Check status of all git repos in a specific directory
git-dir -d ~/projects status

# Pull all repositories
git-dir pull

# Add and commit changes in all repositories
git-dir add .
git-dir commit -m "Update all repos"

# Push all repositories
git-dir push

How it works

The tool will:

  • Scan the specified directory (or current directory) for subdirectories
  • Check each subdirectory for a .git folder
  • Execute the provided git command in each directory that contains a git repository
  • Display the output for each repository

Supported Platforms

  • Linux (x64, arm64)
  • macOS (x64, arm64)
  • Windows (x64, arm64)

License

ISC

Keywords

dir

FAQs

Package last updated on 24 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts