Speed up confirming git additions by allowing one-touch single letter without having to press enter for each chunk in git add -p and git reset -p

Wow could not find a single blog talking about this but i found the way to avoid having to press enter after each git add -p chunk, you can do this with this setting:

git config --global interactive.singleKey true

From the git documentation:

interactive.singleKey

In interactive commands, allow the user to provide one-letter input with a single key (i.e., without hitting enter). Currently this is used by the --patch mode of git-add[1], git-checkout[1], git-restore[1], git-commit[1], git-reset[1], and git-stash[1]. Note that this setting is silently ignored if portable keystroke input is not available; requires the Perl module Term::ReadKey.