git-head
v1.20.1
Published
finds the hash of the HEAD reference
Downloads
144,984
Readme
git-head
Install
$ npm install -g git-head
Example
var gitHead = require('git-head')
gitHead('/path/to/.git', function (err, hash) {
if (err) return console.log(err)
console.log('HEAD:', hash)
})
Licence
Copyright © 2015 Christoph Witzko