Skip to content

Instantly share code, notes, and snippets.

@otzoran
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save otzoran/718a8079add71e2a0b03 to your computer and use it in GitHub Desktop.
Save otzoran/718a8079add71e2a0b03 to your computer and use it in GitHub Desktop.
git index, cache, staging area

What is git index?

see explanation

git add -p

-p, --patch
Interactively choose hunks of patch between the index and the work tree and add them to the index. This gives
the user a chance to review the difference before adding modified contents to the index.

The git index goes by many names.

But they all refer to the same thing. Some of the names you may have heard:

  • Index
  • Cache
  • Directory cache
  • Current directory cache
  • Staging area
  • Staged files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment