Skip to content

yasukotelin/git-ex-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-ex

npm version npm prettier workflow License: MIT

git-ex is git extensions tool.

Install

from npm

npm i -g @yasukotelin/git-ex

from local code (dev version)

git clone https://github.com/yasukotelin/git-ex-js
npm install
npm run localInstall

If you can't use git ex , you need to restart terminal.

Update

npm update -g @yasukotelin/git-ex

Commands

Usage: index [options] [command]

git-ex is git extensions tool

you can see more information
=> https://github.com/yasukotelin/git-ex-js

Options:
  -V, --version        output the version number
  -h, --help           display help for command

Commands:
  switch [options]     switch branch
  stage|add [options]  stage files
  unstage [options]    unstage files
  diff [options]       show diff with selector
  stash [options]      stash actions
  discard [options]    discard files
  rm-merged [options]  remove merged branch
  help [command]       display help for command

How to use multiselector

? Pick stage files ›  
Instructions:
    ↑/↓: Highlight option
    ←/→/[space]: Toggle selection
    a: Toggle all
    enter/return: Complete answer
◯   README.md
◯   src/index.js
◯   src/command/diff.js

You can see Instructions with --instructions option.

git ex switch

Switch branch with selector.

when use --remote , create new branch with selected remote it. Initial value is remote branch name.

Usage: git-ex switch [options]

switch branch

Options:
  -r, --remote  switch remote branch
  -h, --help    display help for command

img

img

git ex stage|add

Stage(Add) with multiselector.

Usage: index stage|add [options]

stage files

Options:
  -i, --instructions  display instructions (default: not display)
  -h, --help          display help for command

img

git ex unstage

Reset (Unstage) with multiselector.

Usage: git-ex unstage [options]

unstage files

Options:
  -i, --instructions  display instructions (default: not display)
  -h, --help          display help for command

img

git ex diff

Display diff files with multiselector. If you use --cached option, you can select from staged files.

You can use --staged instead of --cached .

Usage: git-ex diff [options]

show diff with selector

Options:
  -c, --cached        show diff cached(staged) files (default: false)
  -s, --staged        --cached alias (default: false)
  -i, --instructions  display instructions (default: not display)
  -h, --help          display help for command

img

git ex stash

Stash actions (show list, new stash save and clear all stash.). You can select a stash from list. And do action to stash (show diff, pop, apply and drop).

Usage: git-ex stash [options]

stash actions

Options:
  -i, --instructions  display instructions (default: not display)
  -h, --help          display help for command

img

img

git ex discard

Discard selected files.

If modified files, discard means git checkout {file} . If untracked files, execute git clean -df {files} .

Usage: git-ex discard [options]

discard files

Options:
  -i, --instructions  display instructions (default: not display)
  -h, --help          display help for command

img

git ex rm-merged

Remove merged branches with multiselector.

Usage: git-ex rm-merged [options]

remove merged branch

Options:
  -i, --instructions  display instructions (default: not display)
  -h, --help          display help for command

img

Development

git clone https://github.com/yasukotelin/git-ex-js
cd git-ex-js
npm install
node src/index.js

Formatter

use prettier default setting.

npm run format

recommend use vscode auto save.

{
  "editor.formatOnSave" : true
}

Author

yasukotelin

About

git-ex is git extensions tool.

Resources

License

Stars

Watchers

Forks

Packages

No packages published