Skip to content

emaincourt/git-add-interactive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

🎒 Manage your git files from terminal

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published