在 Git 提交信息中使用 Emoji
Gitmoji 旨在解释如何在 Git 提交消息时使用表情符号。在提交信息时使用表情符号,可以更容易地识别提交的目的或意图。
Emoji 列表
:优化项目结构 / 代码格式
:art:
️ :性能提升
:zap:
:移除代码或文件
:fire:
: 修改 bug
:bug:
️:紧急修复 / Critical hotfix
:ambulance:
: 引入新功能
:sparkles:
:更新文档
:memo:
: 部署工作
:rocket:
: UI / 样式更新
:lipstick:
: 初始化项目
:tada:
: 添加或更新测试用例
:white_check_mark:
️ : 修复安全问题
:lock:
: 发布版本 / 创建 tag
:bookmark:
:修复编译器 / linter 报错
:rotating_light:
: 建设中 / WIP / Work in progress.
:construction:
: 修复 CI 构建问题
:green_heart:
️ : 依赖版本降级
:arrow_down:
️ : 依赖版本升级
:arrow_up:
:锁定依赖版本
:pushpin:
:添加或更新自动构建 / 持续集成
:construction_worker:
: 添加或更新分析追踪代码
:chart_with_upwards_trend:
️ :代码重构
:recycle:
:添加依赖
:heavy_plus_sign:
: 移除依赖
:heavy_minus_sign:
:更新配置文件
:wrench:
: 更新开发脚本
:hammer:
:国际化与本地化
:globe_with_meridians:
️ :修复错字 / Fix typos.
:pencil2:
: 后续要优化的代码
:poop:
️ : 回滚更新 / Revert changes.
:rewind:
:合并分支
:twisted_rightwards_arrows:
️ :更新打包文件
:package:
️ : 外部 API 导致的代码更新
:alien:
:移动或重命名资源 (e.g.: files, paths, routes).
:truck:
: 更新许可证
:page_facing_up:
:引入破坏性更新 / breaking changes.
:boom:
: 更新资源 / assets.
:bento:
️ :提升无障碍体验
:wheelchair:
:更新代码注释
:bulb:
:Write code drunkenly.
:beers:
: 修改文本 / text and literals.
:speech_balloon:
️ : 数据库相关操作
:card_file_box:
: 添加更新日志
:loud_sound:
:移除运行日志
:mute:
:更新贡献者
:busts_in_silhouette:
提升用户体验与可用性 / UE & usability
:children_crossing:
️ : 更改架构 / Make architectural changes.
:building_construction:
: 响应式设计工作
:iphone:
:Mock 数据
:clown_face:
:添加彩蛋
:egg:
:更新 .gitignore 文件
:see_no_evil:
:更新快照 / snapshots
:camera_flash:
⚗️ : 实验性功能
:alembic:
️ : SEO 优化
:mag:
️ : Add or update types.
:label:
: Add or update seed files.
:seedling:
: 更新功能标记 / feature flags.
:triangular_flag_on_post:
:异常捕获
:goal_net:
: 更新动画过渡效果
:dizzy:
️ :待清理的弃用代码
:wastebasket:
:Work on code related to authorization, roles and permissions.
:passport_control:
: 简单问题修复
:adhesive_bandage:
:数据检查 / Data exploration/inspection.
:monocle_face:
⚰️ :移除无用代码
:coffin:
gitmoji-cli
也可以通过安装 gitmoji-cli 在命令行中使用 gitmoji。
npm i -g gitmoji-cli
命令行使用
$ gitmoji --help
A gitmoji interactive client for using gitmojis on commit messages.
Usage
$ gitmoji
Options
--init, -i Initialize gitmoji as a commit hook
--remove, -r Remove a previously initialized commit hook
--config, -g Setup gitmoji-cli preferences.
--commit, -c Interactively commit using the prompts
--list, -l List all the available gitmojis
--search, -s Search gitmojis
--version, -v Print gitmoji-cli installed version
--update, -u Sync emoji list with the repo
Commit
可以直接使用或通过 commit hook 使用。
Client
启动命令行,会根据提示自动生成提交。
$ gitmoji -c
Hook
初始化钩子之后,添加更改并提交,之后将开始提示并生成提交消息。
$ gitmoji -i
$ git add .
$ git commit
️ 钩子不要和 gitmoji -c
命令一起使用。
Search
根据关键字搜索适合的 gitmoji。
$ gitmoji -s "criteria"
List
打印所有可用的 gitmojis。
$ gitmoji -l
Update
更新 gitmojis 列表,默认情况下,第一次运行 gitmoji 时,cli 会创建一个缓存,以在无网络的情况下使用。
$ gitmoji -u
Config
运行 gitmoji -g
设置首选项。
Options
- Automatic git add: 每次执行 commit 时是否自动执行
git add .
- Emoji format: 切换表情符号格式
- Scope prompt: 启用或禁用 conventional commits scope prompt.
- Signed commits: 是否使用 GPG 签名提交
Reference
在 Git 提交信息中使用 Emoji的更多相关文章
- git push撤销、git commit 撤销、git add撤销、修改git提交信息
原文地址:http://leisure.wang/?p=472 虽然自觉是一个Git工具的老手了,但是平时犯了一点错误,就发现有点捉襟见肘了.就好像今天我把一些代码玩坏了,想撤回到前几个版本去(此时已 ...
- 怎么创建一个良好的Git提交信息
译 原文:https://dev.to/chrissiemhrk/git-commit-message-5e21 提交信息是对提交之前添加和更改的文件所做的更改的简短描述. 良好的提交信息不仅对你 ...
- 写得好 git 提交信息
编写好 git 提交信息 提交信息 我们作出答复,更改将提交相关信息,这些信息通常被认为是重要的信息会小心留下应该离开,你为什么需要这个提交实例,提交解决任何问题. 我们需要良好的信息组织,虽然后来, ...
- commit lint规范化团队git提交信息
一.快速提交符号angular编码规范的提交信息 1.命令行中安装commitizen: npm install -g commitizen commitizen init cz-convention ...
- 使用gradle构建Android时 版本号versionName中嵌入git提交信息
为什么要这么做 在应用开发的版本迭代过程中,通过版本号并不能快速定位到所对应的代码,导致在后面分析问题追溯对应版本的代码时比较麻烦. 如果代码是通过git来管理的,git的commit id等 ...
- git提交过程中遇到的 index.lock 问题导致无法提交的解决方法
在提交代码的过程中,可能会遇到下面的问题: fatal: Unable to create 'C:/programLists/zzw-q1/.git/index.lock': File exists. ...
- [Golang] 编译程序时打上git提交信息标记
1.加入代码 //version.go package version import ( "flag" "fmt" "os" ) var ( ...
- 修改已经提交到远端的git commit信息
有这么一种场景,就是以前没有设置用户名和邮箱,导致提交时git commit信息中用户信息不正确.这样的情况导致后来我们提交代码到git上面时因为身份验证错误,只有到 push 阶段了才发现提交不上去 ...
- 开发中的你的Git提交规范吗?
1. 前言 目前大部分公司都在使用Git作为版本控制,每个程序员每天都要进行代码的提交.很多开发者也包括我自己,有时候赶时间或者图省事,就这么提交: git commit -m "修改bug ...
- 老鸟都应该注意的git 提交规范
不知道大家有没有看过自己项目的git 提交信息-----我看过好多次 ,不忍直视 然后提醒一起的小伙伴 :大家规范点 信息要详细, 过段时间再看下 ,还是一样. 相信很多猿都有这样的感受,对于垃圾的 ...
随机推荐
- Linux下安装 Posgresql 并设置基本参数
在Linux下安装Postgresql有二进制格式安装和源码安装两种安装方式,这里用的是二进制格式安装.各个版本的Linux都内置了Postgresql,所以可直接通过命令行安装便可.本文用的是Cen ...
- SQL Server表分区的NULL值问题
SQL Server表分区的NULL值问题 SQL Server表分区只支持range分区这一种类型,但是本人觉得已经够用了 虽然MySQL支持四种分区类型:RANGE分区.LIST分区.HASH分区 ...
- js-判断字符是否为数字
if(/^\d+$/.test(str)) { 全为数字,执行... } 当然你也可以用isNaN来判断 if(isNaN(str)) { str是个数字,执行... }
- php基础04:字符串函数
<?php //1.strlen(),strlen() 函数返回字符串的长度,以字符计. echo strlen("hello world"); echo "< ...
- bean标签
bean的uri的路径 bean标签是属于struts中的标签,使用要在 Struts 1.3 Libraries中 struts-taglib-1.3.8.jar 中META-INFtld ...
- Positional parameter are considered deprecated; use named parameters or JPA-style positional parameters instead.
这行代码: List<Cat> catList =session.createQuery("from Cat p where p.name.first_name=?") ...
- 怎样新建Oracle数据库
新建Oracle数据库三种方法:1.通过运行Oracle Database Configuration Assistant 创建配置或删除数据库(也可在命令行下输入dbca):2.用命令行的方式建立数 ...
- BT之下拉菜单
<div class="dropdown"> <button class="btn btn-default dropdown-toggle" ...
- shiro-core包引用的版本问题
在做shiro学习时,遇到这样的问题: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/ ...
- Visual Studio 开发(一):安装配置Visual Studio Code
一.为何使用Visual Studio Code 在学习音视频开发的时候,使用到了C和C++,在回顾复习C和C++的知识的时候,需要编写一些代码来加强理解. 虽然,有在线的语言编辑工具https:// ...