--patch or -p is usedgit add --patchSimilar to the above commandgit add -p
Possible answers for the command:
y stage this hunk for the next commit
n do not stage this hunk for the next commit
q quit; do not stage this hunk or any of the remaining hunks
a stage this hunk and all later hunks in the file
d do not stage this hunk or any of the later hunks in the file
...
The complete list of the possible answers is on the link of the note