DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 968,547 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

Latest comments (0)

🌚 Browsing with dark mode makes you a better developer.

It's a scientific fact.