1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-02 22:58:01 +00:00

Add Single Key Presses in Interactive Mode as a git til.

This commit is contained in:
jbranchaud
2015-04-28 18:30:38 -05:00
parent 04693e3ced
commit e1a2bd6663
2 changed files with 17 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
- [Dry Runs in Git](git/dry-runs-in-git.md)
- [Intent To Add](git/intent-to-add.md)
- [List Untracked Files](git/list-untracked-files.md)
- [Single Key Presses in Interactive Mode](git/single-key-presses-in-interactive-mode.md)
- [Staging Changes Within Vim](git/staging-changes-within-vim.md)
- [Stashing Untracked Files](git/stashing-untracked-files.md)
- [Verbose Commit Message](git/verbose-commit-message.md)

View 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)