DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป is a community of 967,611 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
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:
https://git-scm.com/docs/git-config#Documentation/git-config.txt-interactivesingleKey

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)

DEV has this feature:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. ๐Ÿ›