Last active
October 22, 2018 19:04
-
-
Save zaqmor/fc08e0324b2a4dcaf465ba8a7b9ff57e to your computer and use it in GitHub Desktop.
Git: Get SHA of file in working tree
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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