Skip to content

Instantly share code, notes, and snippets.

What would you like to do?

Git in depth

How it works

Commands of special interest

  • git verify-pack -v .git/objects/pack/pack-*.idx - Output data about the indexes
  • git show-index < .git/objects/pack/pack-*.idx - Output data about the indexes (more and other format than above)
  • git rev-list REFS - list all revs in a ref
  • find .git/objects -type f - get all object files
  • find .git/refs -type f - list all refs
  • git count-objects -v - list objects and types

Manuals worth looking into

Many, even hidden commands can be found @ git help -a

  • git-cat-file
  • git-ls-tree
  • git-show-ref
  • git-rev-list
  • git-upload-pack
  • git-show-index
  • git-unpack-objects
  • git-unpack-file
  • git-index-pack
  • git-fetch-pack
  • git-gc
  • git-fast-import
  • git-ls-files
  • git-pack-refs
  • git-index-pack
  • git-http-fetch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment