DEV Community

Christophe Colombier
Christophe Colombier

Posted on

git config: interactive.singleKey

In my previous post, I talked about --patch option.

If you are using --patch (or -p that is the short version) quite a lot like me, you may be happy to discover the following configuration setting interactive.singleKey

In interactive commands, allow the user to provide one-letter input with a single key (i.e., without hitting enter)

More information here:

Here is how to activate it

git config --global interactive.singleKey true
Enter fullscreen mode Exit fullscreen mode

Then next time, you will use patch mode, you won't need to press enter after choosing among y,n,a,q,d,e

Top comments (0)