🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

girty

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

girty

> git dirty

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

girty

git dirty

Find local git repos with:

  • uncommitted changes
  • unpushed commits
  • untracked branches
  • no remote connected

It essentially helps you find repos that would loose work if they were deleted from your hard drive.

Usage

Bun (bunx) is required to run this command.

Usage: girty [paths...] [options]

Arguments:
  paths           Paths to check (recursively)

Options:
  -V, --version   output the version number
  -a, --absolute  Display absolute paths
  -c, --compact   Compact output
  -f, --fetch     Run `git fetch` before checking the repo state (slower)
  -h, --help      display help for command

Example

# Find and check all git repos in the directory 'projects' (recusively).
bunx girty ./projects

# Find and check all git repos in the directories 'projects' and '../../more-projects' (recusively).
bunx girty ./projects ../../more-projects

# Or install it globally
bun --global add girty
girty ./projects

The output will look something like this:

┌   girty
│
~  Checking directories:
│    /home/user/dev
│
◇  Found 69 git repos
│
◇  2 repos are dirty:

./dev/my-project
  uncommitted changes (2)
    M README.md
    M package.json
    D some/nested/file
  unpushed commits
    main (2)
      add something very cool (2025-06-01)
      fix some annoying bug (2025-06-01)
  untracked branches (1)
    some-new-feature
    explore-something-cool

./dev/prototype-24
  no remote

FAQs

Package last updated on 09 Jun 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