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

Stage and HEAD

working copy -> (git add) index -> (git commit) -> HEAD

$ git diff

  • (changes between working copy and staged copy (index, cache))

$ git diff --staged

  • (changes between staged copy and HEAD)

$ git diff HEAD

  • (changes between working copy and HEAD)