Add git files interactively from the command line.
Add the following alias to your global .gitconfig
file
[alias]
addi = !git add $(git status --porcelain | fzf -m | awk '{print $2}')
* The !
tells git to run an external command instead of a subcommand.
Run git addi
. To select multiple files, use Shift + Tab
. Press ENTER
when done.