simple-git-tools

0.0.7 • Public • Published

simple-git

Batch delete git branches: visualization, fuzzy matching, manual multiple selection, precise selection

Install

npm install -g simple-git

Usage

# normal delete method
git branch -d xxx
git push origin -d xxx
# normal Batch delete method
git branch | grep  'xxx' | xargs git branch -d
git branch -r | grep  'xxx' | sed 's/origin\///g' | xargs -I {} git push origin :{}

# the new way
sgit branch -h

Usage: branch [options]

simple-git Batch delete git branches: visualization, fuzzy matching, manual multiple selection, precise selection

Options:
  -d, --delete [delete]       delete branch (Default)
  -D, --delete [deleteForce]  force delete branch

  -a, --all [all]             all branches
  -l, --local [local]         local branch only(Default)
  -r, --remote [remote]       remote branch only
  -f, --fuzzy [fuzzy]         fuzzy matching

  -m, --multiple [multiple]   Is it multiple choice(Default multi-select)
  -s, --selected [selected]   Is it selected(Default selected)

  -c, --cwd [cwd]             project path(Default current directory)
  -h, --help                  output usage information

  # example

example:

img-spd

License

MIT

Package Sidebar

Install

npm i simple-git-tools

Weekly Downloads

1

Version

0.0.7

License

none

Unpacked Size

52.2 kB

Total Files

8

Last publish

Collaborators

  • wzg