项目作者: afeiship

项目描述 :
Get git infomation.
高级语言: JavaScript
项目地址: git://github.com/afeiship/git-info.git
创建时间: 2017-06-26T02:55:51Z
项目社区:https://github.com/afeiship/git-info

开源协议:MIT License

下载


git-info

Get git infomation.

installation

  1. npm i @jswork/git-info

usage

  1. var branch = require('@jswork/git-info').branch;
  2. //exec('git branch | grep \\\*')
  3. //branch();

get current brach

  1. # git rev-parse --abbrev-ref HEAD
  2. # git branch | grep '*'

resources