git-add-interactive

0.5.0 • Public • Published

NPM

CircleCI codecov

git-add-interactive

Leverages the blessed library to provide an alternative to git add -i, giving the ability to dynamically add/remove files of the next commit.

🎒 Getting started

You first need to install git-add-interactive for being able to run it :

yarn global add git-add-interactive

You can then simply run git-add-interactive from your project root folder or add an alias to git doing :

git config --global alias.add-interactive "!git-add-interactive"

🎯 How does it work ?

git-add-interactive is yet able to :

  • stage a newly created or modified file
  • remove a newly created or modified file
  • show the diff of the currently selected file

Each file that will be displayed with a ✓ has been either already staged before or will be after pressing enter. Navigate with the up and down arrows of your keyboard and press press to trigger the selection of a file. You can also use ctrl + a to automatically trigger all files. Press then Enter to apply the changes.

You can also press d to show the diff of the file. Any other key press will hide the diff window. This diff window is also scrollable and draggable.

Press ctrl + c or q to leave the interface.

Feel free to let me know and I will fix the issues as far as I can.

Readme

Keywords

none

Package Sidebar

Install

npm i git-add-interactive

Weekly Downloads

1

Version

0.5.0

License

MIT

Unpacked Size

44.9 kB

Total Files

56

Last publish

Collaborators

  • emaincourt