2020-07-31 16:39:33 +08:00
|
|
|
|
# gitcz
|
2023-02-23 21:40:18 +08:00
|
|
|
|
|
|
|
|
|
Golang 版本 Git Commitizen,commit 规范工具
|
|
|
|
|
|
2020-07-31 16:39:33 +08:00
|
|
|
|
# 快速安装
|
2023-02-23 21:40:18 +08:00
|
|
|
|
|
2021-09-07 11:08:40 +08:00
|
|
|
|
go install github.com/xiaoqidun/gitcz@latest
|
2023-02-23 21:40:18 +08:00
|
|
|
|
|
2020-07-31 16:39:33 +08:00
|
|
|
|
# 编译安装
|
2023-02-23 21:40:18 +08:00
|
|
|
|
|
2020-07-31 16:39:33 +08:00
|
|
|
|
```
|
|
|
|
|
git clone https://github.com/xiaoqidun/gitcz.git
|
|
|
|
|
cd gitcz
|
|
|
|
|
go build gitcz.go
|
|
|
|
|
```
|
2023-02-23 21:40:18 +08:00
|
|
|
|
|
2020-07-31 16:39:33 +08:00
|
|
|
|
# 手动安装
|
2023-02-23 21:40:18 +08:00
|
|
|
|
|
2021-09-07 11:35:03 +08:00
|
|
|
|
1. 根据系统架构下载为你编译好的[二进制文件](https://aite.xyz/product/gitcz/)
|
2023-02-23 21:40:18 +08:00
|
|
|
|
2. 将下载好的二进制文件重命名为 gitcz 并保留后缀
|
|
|
|
|
3. 把 gitcz 文件移动到系统 PATH 环境变量中的目录下
|
|
|
|
|
4. windows 外的系统需使用 chmod 命令赋予可执行权限
|
|
|
|
|
|
2020-07-31 16:39:33 +08:00
|
|
|
|
# 使用说明
|
2023-02-23 21:40:18 +08:00
|
|
|
|
|
2020-07-31 16:39:33 +08:00
|
|
|
|
```shell script
|
|
|
|
|
# 添加文件到本地仓库
|
|
|
|
|
git add .
|
|
|
|
|
# 使用-amend参数可覆盖最近一次提交信息,等同于git commit --amend
|
2023-02-23 21:40:18 +08:00
|
|
|
|
# 使用-S参数可进行签署commit操作,等同于git commit -S
|
2020-07-31 16:39:33 +08:00
|
|
|
|
gitcz
|
|
|
|
|
# 推送文件到远程仓库
|
|
|
|
|
git push
|
|
|
|
|
```
|
2023-02-23 21:40:18 +08:00
|
|
|
|
|
2020-07-31 16:39:33 +08:00
|
|
|
|
# 规范文档
|
2023-02-23 21:40:18 +08:00
|
|
|
|
|
|
|
|
|
gitcz 使用:[angular git commit 规范](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines)
|