git-head
Version:
finds the hash of the HEAD reference
24 lines (15 loc) • 501 B
Markdown
# git-head
[](https://travis-ci.org/christophwitzko/git-head)
## Install
$ npm install -g git-head
## Example
```javascript
var gitHead = require('git-head')
gitHead('/path/to/.git', function (err, hash) {
if (err) return console.log(err)
console.log('HEAD:', hash)
})
```
## Licence
The [MIT License (MIT)](http://opensource.org/licenses/MIT)
Copyright © 2015 [Christoph Witzko](https://twitter.com/christophwitzko)