Get git infomation.
npm i @jswork/git-info
var branch = require('@jswork/git-info').branch;
//exec('git branch | grep \\\*')
//branch();
# git rev-parse --abbrev-ref HEAD
# git branch | grep '*'
Get git infomation.
npm i @jswork/git-info
var branch = require('@jswork/git-info').branch;
//exec('git branch | grep \\\*')
//branch();
# git rev-parse --abbrev-ref HEAD
# git branch | grep '*'