New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

git-add-interactive

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-add-interactive

Dynamically stage files to git

latest
Source
npmnpm
Version
0.5.0
Version published
Maintainers
1
Created
Source

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.

:school_satchel: 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"

: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.

FAQs

Package last updated on 02 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts