An open API service indexing awesome lists of open source software.

https://github.com/afeiship/git-info

Get git infomation.
https://github.com/afeiship/git-info

branch git hash tag

Last synced: 4 months ago
JSON representation

Get git infomation.

Awesome Lists containing this project

README

          

# git-info
> Get git infomation.

## installation
```shell
npm i @jswork/git-info
```

## usage
```js
var branch = require('@jswork/git-info').branch;

//exec('git branch | grep \\\*')
//branch();
```

## get current brach
```bash
# git rev-parse --abbrev-ref HEAD
# git branch | grep '*'
```

## resources
+ https://github.com/pirelenito/git-revision-webpack-plugin