Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christophwitzko/git-head
finds the hash of the HEAD reference
https://github.com/christophwitzko/git-head
git javascript npm-package
Last synced: 10 days ago
JSON representation
finds the hash of the HEAD reference
- Host: GitHub
- URL: https://github.com/christophwitzko/git-head
- Owner: christophwitzko
- Created: 2015-02-08T20:32:18.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-05-11T16:31:28.000Z (over 3 years ago)
- Last Synced: 2024-10-17T02:33:24.334Z (22 days ago)
- Topics: git, javascript, npm-package
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/git-head
- Size: 265 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-head
[![CI](https://github.com/christophwitzko/git-head/workflows/CI/badge.svg?branch=master)](https://github.com/christophwitzko/git-head/actions?query=workflow%3ACI+branch%3Amaster)
## 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)