git-head

finds the hash of the HEAD reference

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
git-head
1.20.17 years ago9 years agoMinified + gzip package size for git-head in KB

Readme

git-head
Build Status

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

The MIT License (MIT)
Copyright © 2015 Christoph Witzko