git-add-interactive v0.5.0
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.
:school_satchel: Getting started
You first need to install git-add-interactive for being able to run it :
yarn global add git-add-interactiveYou 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":dart: 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.
