UNPKG

git-head

Version:
24 lines (15 loc) 501 B
# git-head [![Build Status](https://travis-ci.org/christophwitzko/git-head.svg)](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)