1.0.5 • Published 1 year ago

@jswork/git-info v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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