node-git-infomation
v1.0.2
Published
Creates a git.properties file with git information of the current commit
Downloads
1
Readme
说明
生成git的基础信息文件git.properties或者git.properties.json
Example output:
git.commit.id.abbrev=42954d1
[email protected]
git.commit.message.full=first commit
git.commit.id=42954d1fe6285fea65ba81ea39d71d5b75f9ade0
git.commit.message.short=first commit
git.commit.user.name=User Name
git.branch=master
git.commit.time=2016-11-20T11:48:42.000Z
使用方法
1、安装依赖
npm i -D node-git-infomation
2、配置package.json
{
"scripts": {
"git-info": "git-info",
"git-info-json": "git-info-json"
}
}
3、执行指令
npm run git-info
npm run git-info-json