mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 07:08:01 +00:00
Add Single Key Presses in Interactive Mode as a git til.
This commit is contained in:
16
git/single-key-presses-in-interactive-mode.md
Normal file
16
git/single-key-presses-in-interactive-mode.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# Single Key Presses in Interactive Mode
|
||||
|
||||
When staging changes in interactive mode (`git add -p`), you have a number
|
||||
of options associated with single keys. `y` is *yes*, `n` is *no*, `a` is
|
||||
*this and all remaining*, and so on.
|
||||
|
||||
By default, you have to press *enter* after making your selection. However,
|
||||
it can be configured for single key presses. Add the following to your git
|
||||
configuration file to enable single key presses for interactive mode:
|
||||
|
||||
```
|
||||
[interactive]
|
||||
singlekey = true
|
||||
```
|
||||
|
||||
[source](https://github.com/hashrocket/dotmatrix/blob/master/.gitconfig#L33-L34)
|
||||
Reference in New Issue
Block a user