Read more

Git: How to stage hunks with a single key press

Emanuel
August 25, 2020Software engineer at makandra GmbH

In interactive commands, Git allows the user to provide one-letter input with a single key without hitting enter ( docs Show archive.org snapshot ).

# Enabled this feature globally
git config --global interactive.singlekey true

# Or enable this feature locally for a single repository
git config interactive.singlekey true
Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot

This allows you to hit "y" instead of "y + ENTER" to move to the next hunk.

Stage this hunk [y,n,q,a,d,s,e,?]?
Posted by Emanuel to makandra dev (2020-08-25 08:10)