Skip to content

Instantly share code, notes, and snippets.

@jlandure
Last active July 27, 2016 14:16
Show Gist options
  • Select an option

  • Save jlandure/225d87ab3979d0e7398fa4754947c11d to your computer and use it in GitHub Desktop.

Select an option

Save jlandure/225d87ab3979d0e7398fa4754947c11d to your computer and use it in GitHub Desktop.
get git sha1 from a file
git rev-parse :front/package.json
b5b0d3057d3f408251a3bed3d210bad7edfd0cc0
git hash-object package.json
b5b0d3057d3f408251a3bed3d210bad7edfd0cc0
git rev-parse --short :front/package.json
b5b0d30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment