git-head

finds the hash of the HEAD reference

MIT 24 个版本
安装
npm install git-head
yarn add git-head
pnpm add git-head
bun add git-head
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

版本列表
1.20.1 2017-04-13
1.20.0 2017-04-13
1.19.0 2017-01-30
1.18.0 2017-01-11
1.17.0 2016-12-02
1.16.0 2016-12-02
1.15.0 2016-10-30
1.14.0 2016-05-04
1.13.0 2016-04-24
1.12.0 2016-04-24
1.11.0 2016-04-24
1.10.0 2016-04-24
1.9.0 2016-02-08
1.8.0 2016-01-28
1.7.0 2015-11-19
1.6.0 2015-10-17
1.5.0 2015-10-02
1.4.0 2015-10-02
1.3.0 2015-10-02
1.2.1 2015-02-11
1.2.0 2015-02-10
1.1.0 2015-02-09
1.0.1 2015-02-09
1.0.0 2015-02-08