Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

git-status-cli

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

git-status-cli

Get the output of 'git status' from the command line, formatted as JSON or plain text

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

git-status-cli


Get the output of 'git status' from the command line, formatted as JSON or plain text.

Available for macOS, Windows and Linux.


Contents

  1. Installation
  2. Usage
  3. Examples
  4. Platform Support
  5. Contribute
  6. Author

Installation

Installation as global NPM package

$ npm install --global git-status-cli

Usage

$ git-status [--format <output-format>] [--cwd <path>] [--git <path>]
  • Parameters
    • -f, --format output-format - Output format (Options: json, text)
    • -c, --cwd path - Path to Git repository (Example: /home/user/myrepository)
    • -g, --git path - Path to Git executable (Example: /usr/bin/git)

Examples

Standard usage

$ git-status
>> {
>>     "modified": [ "README.md", "lib/index.js" ],
>>     "added": [ "LICENSE" ]
>> }  

Custom format

$ git-status-cli --format text
>> modified:		README.md, file2
>> added:		file3, file4

Custom repository path

$ git-status-cli --cwd "/Users/joeqpublic/Documents/myrepository"
>> modified:		README.md, file2
>> added:		file3, file4

Show Help

$ git-status-cli --help

Show Version

$ git-status-cli --version

Platform Support

Tested on:

  • macOS Mojave (10.14.6)
  • Windows 10 Spring Creators Update
  • Ubuntu (18.04)

Contribute Contribute

Read the contribution documentation first.

  • Dev Chat: Talk about features and suggestions.
  • Issues File bugs and document issues.

Author

sidneys 2018

Keywords

FAQs

Package last updated on 07 Nov 2020

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