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 book lover

Growing Rails Applications in Practice

Check out our e-book. Learn to structure large Ruby on Rails codebases with the tools you already know and love.

  • Introduce design conventions for controllers and user-facing models
  • Create a system for growth
  • Build applications to last
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)