Skip to content

Instantly share code, notes, and snippets.

@ipan
Created March 29, 2018 05:19
Show Gist options
  • Save ipan/5b710e2ffc3d81e456e71225a699f99c to your computer and use it in GitHub Desktop.
Save ipan/5b710e2ffc3d81e456e71225a699f99c to your computer and use it in GitHub Desktop.
git rev-list

git rev-list

get latest commits for given directory

git rev-list -1 --abbrev-commit HEAD -- <dir-name>/

list all objects in git repo

git rev-list --objects --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment