Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

How to stash only part of the files

Let’s say we have made changes to two files (X and Y) and we would like to stash one of them (X)

$ git add Y
$ git stash --keep-index
$ git reset HEAD Y