Created
July 1, 2023 12:29
-
-
Save saman-taghavi/5b9a98f2e12ffb7af77026477e2e2ff9 to your computer and use it in GitHub Desktop.
get git hash in node
This file contains 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
revision = require("child_process") | |
.execSync("git rev-parse HEAD") | |
.toString() | |
.trim(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment