npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

git-pend

v1.1.0

Published

CLI tool to find git repositories with pending changes in subdirectories

Readme

git-pend

A CLI tool to quickly scan subdirectories and find git repositories with pending changes, unpushed commits, or stashed work.

Perfect for developers managing multiple projects who want to ensure nothing is forgotten before ending their workday or switching tasks.

Installation

Global Installation (Recommended)

npm install -g git-pend

After installation, you can use the git-pend command from anywhere:

git-pend

Local Installation

npm install git-pend

Then run via npx:

npx git-pend

Usage

Basic Usage

Scan the current directory and all subdirectories for git repositories with pending changes:

git-pend

Scan a Specific Directory

git-pend ~/projects
git-pend /path/to/your/repos

Command Line Options

git-pend [options] [path]

Options:

  • -h, --help - Show help message
  • -a, --all - Show all repositories, including clean ones
  • -d, --depth N - Maximum directory depth to search (default: 3)

Examples

# Scan current directory
git-pend

# Scan specific directory
git-pend ~/projects

# Search with greater depth
git-pend -d 5 ~/code

# Show all repositories including clean ones
git-pend -a

# Combine options
git-pend -a -d 4 ~/workspace

Features

Status Detection

git-pend detects and displays:

  • Staged changes - Files ready to commit
  • Modified files - Tracked files with changes
  • Untracked files - New files not yet added to git
  • Merge conflicts - Files with unresolved conflicts
  • Unpushed commits - Commits not yet pushed to remote
  • Stashed changes - Changes saved in git stash

Color-Coded Output

  • 🔴 Red dot (●) - Repository with pending changes
  • 🟢 Green checkmark (✓) - Clean repository (with --all flag)
  • 🟢 Green - Staged changes
  • 🟡 Yellow - Modified files and stashes
  • 🔵 Blue - Unpushed commits
  • 🔴 Red - Conflicts and errors

Sample Output

Scanning for git repositories in: /home/user/projects

● my-website [main]
    +2 staged | ~3 modified | ↑1 unpushed

● api-server [develop]
    ~5 modified | ?2 untracked | ⚑1 stashed

Summary:
  Total repositories scanned: 15
  Repositories with changes: 2
  Clean repositories: 13

Use Cases

  • End of Day Check - Ensure you haven't forgotten to commit or push changes
  • Project Overview - Get a quick status of all your projects
  • Pre-Shutdown Routine - Check for pending work before closing your laptop
  • CI/CD Validation - Use in scripts to verify clean working directories
  • Team Lead Reviews - Scan team directories for abandoned work

Exit Codes

  • 0 - All repositories are clean (no pending changes)
  • 1 - One or more repositories have pending changes

This makes git-pend useful in scripts and automation:

if git-pend ~/projects; then
    echo "All clean!"
else
    echo "You have pending changes!"
fi

Requirements

  • Node.js >= 14.0.0
  • Git installed and available in PATH

Supported Platforms

  • Linux
  • macOS
  • Windows

Performance

git-pend is designed to be fast:

  • Skips common non-repository directories (node_modules, vendor, etc.)
  • Configurable depth limit to avoid deep directory scans
  • Only shows repositories with changes by default

License

ISC

Contributing

Issues and pull requests are welcome! If you find a bug or have a feature request, please open an issue on the project repository.

Tips

  1. Add git-pend to your shell profile to run automatically:

    # Add to ~/.bashrc or ~/.zshrc
    alias checkgit='git-pend ~/projects'
  2. Use it before system shutdown:

    git-pend && shutdown -h now
  3. Create a cron job for daily reminders:

    0 17 * * * git-pend ~/projects && notify-send "Git Status Check Complete"