项目作者: afeiship
项目描述 :
Get git infomation.
高级语言: JavaScript
项目地址: git://github.com/afeiship/git-info.git
git-info
Get git infomation.
installation
npm i @jswork/git-info
usage
var branch = require('@jswork/git-info').branch;
//exec('git branch | grep \\\*')
//branch();
get current brach
# git rev-parse --abbrev-ref HEAD
# git branch | grep '*'
resources