caherrera/gitinfo
Composer 安装命令:
composer require caherrera/gitinfo
包简介
README 文档
README
This package provides an console application to obtain git information about a folder
Zero-config use
If you don't need any custom completion behaviour, you can simply add the completion command to your application:
- Install
caherrera/gitinfousing composer by running:$ composer global require caherrera/gitinfo
How it works
for run type this command in any console
$ ~/vendor/caherrera/gitinfo/console [/path/to/scan]
Example
$ ~/vendor/caherrera/gitinfo/console $(pwd) {"commit":"a2986ed961f6aa628a647df9e8f04892c38480f3","hash":"a2986ed","created":"2019-08-21 19:21:45","author":"Carlos Herrera","email":"carlos.herrera@viajesfalabella.com","repository":"git@github.com:caherrera\/gitinfo.git","status":"[{\"file\":\"M\",\"status\":\"\"},{\"file\":\"M\",\"status\":\"\"}]","branch":"master","tag":"1.0.1","project":"gitinfo"}
this command will return a in json format
统计信息
- 总下载量: 24
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-08-21