Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 367 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 367 Bytes

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