git add -i is useful to create an interactive git add.
git add -i
Modes can be switched as explained on screen. To return to the main menu, Enter can be pressed without an input.
Enter
https://git-scm.com/book/en/v2/Git-Tools-Interactive-Staging
[[git]]