Get the current git commit hash from process.cwd()
npm install git-last-commit-hashGet the current git commit hash from process.cwd()
``bash`
npm install git-last-commit-hash
`js
import { getGitLastCommitHash } from 'git-last-commit-hash'
const hash = await getGitLastCommitHash()
console.log(hash) // e.g., "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0"
``
Apache-2.0