Skip to content

gabrielcsapo/git-unstaged

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-unstaged

🎭 Get all unstaged git repos in a folder

Npm Version Build Status Coverage Status Dependency Status devDependency Status npm npm

Installation

npm install git-unstaged -g

Usage

Usage: git-unstaged [options]

Key:

  M -> modified
  A  -> added
  D -> deleted
  R -> renamed
  C -> copied
  ?? -> untracked

Commands:
  -h, --help, help                Output usage information
  -v, --version, version          Output the version number

Options:
  -b, --baseDirectory [path]      The base directory where operations should start from
  -d, --depth [value]             The specified depth you want to recursively search for git repos
  -a, --all                       Show all git repos and their status

Example

$git-unstaged --depth 2

/Users/gabrielcsapo/Documents/espyjs
## wip
 M index.js
 D npm-debug.log
 M package.json

/Users/gabrielcsapo/Documents/git-unstaged
## master...origin/master
 M CHANGELOG.md
 M README.md
 M package.json
?? .eslintignore
?? .eslintrc
?? bin/
?? lib/

Since git allows the execution of non builtin methods another way to run this command would be

$git unstaged --depth 2

/Users/gabrielcsapo/Documents/espyjs
## wip
 M index.js
 D npm-debug.log
 M package.json

/Users/gabrielcsapo/Documents/git-unstaged
## master...origin/master
 M CHANGELOG.md
 M README.md
 M package.json
?? .eslintignore
?? .eslintrc
?? bin/
?? lib/