New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

git-global-status

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-global-status

A cli to quickly find out which repos you forgot to commit to

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Git global status

Quickly find out which repos you forgot to commit to.

Cli usage

# Install globally
npm i -g git-global-status

# Run in the current directory
git-global-status

# Run in a specific directory
git-global-status --path /User/rob/Sites

Api usage

const { findUnstagedRepos } = require('./repoFinder')

;(async () => {
  //
  // Fetch repos which have unstaged changes
  // 
  const repos = await findUnstagedRepos('/your/custom/path')
  
  // 
  // Repos is an array of { path: string, remote: string | null }
  // 
  console.log(repos)
})()

Future work

  • Add an option to fetch repos first
    • .option('-f --fetch', 'Specify whether to fetch repos', false)
    • git fetch && git status -sb
      • ## master...origin/master [ahead 1, behind 1]
  • Add more project dependant ignores (e.g. ruby)

This project was set up by puggle

Keywords

FAQs

Package last updated on 01 Oct 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc