Skip to content

Instantly share code, notes, and snippets.

@zaqmor
Last active October 22, 2018 19:04
Show Gist options
  • Save zaqmor/fc08e0324b2a4dcaf465ba8a7b9ff57e to your computer and use it in GitHub Desktop.
Save zaqmor/fc08e0324b2a4dcaf465ba8a7b9ff57e to your computer and use it in GitHub Desktop.
Git: Get SHA of file in working tree
git hash-object /relative/path/to/file/in/repo.ext
# SEE https://stackoverflow.com/questions/460297/git-finding-the-sha1-of-an-individual-file-in-the-index
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment