表情符号让 Git 提交信息更美观
🎉更新 1:您现在可以通过 GitHub 上的git-emoji/dataset-js仓库访问本文的底层数据集。它也可以作为 NPM 包使用;@git-emoji/dataset-js
。
🎉更新 2:现在,此功能已作为 VS Code 扩展提供,名为Git-Emoji。您可以在 VS Code 内部或通过扩展市场进行安装。您也可以阅读这篇关于此新扩展的简短博客文章。
我必须承认,我疯狂地爱上了表情符号。它们是可爱的小小数字生物,能够比文字更好/更深刻/更简洁地传达你的情感或含义。在 git 提交信息中使用它们真是个绝妙的主意,我们永远不知道是谁想出来的。说到提交信息,我们显然不会利用表情符号的情感感染力——至少目前不会——但它们的简洁性和极佳的可读性是我们可以利用的最大优点。更不用说它们的多样性、广泛的可用性和文本特性了。
表情符号的问题
作为一个 emoji 的忠实粉丝,我几乎在所有可以代替文字的地方都使用它们,尽管有时找到合适的 emoji 有点困难。在编写 git 提交消息时,人们不愿意浪费 15 分钟根据上下文寻找最合适的 emoji。我想,这就是 emoji 尚未流行的原因之一。在极少数情况下,我们的确切意图能够轻易地与 emoji 匹配。在大多数情况下,你必须重新措辞、重新思考或重新组织你的词语才能找到那个隐藏的 emoji。我明白。这就是为什么我开始写一篇关于这个主题的文章,列出一些我最喜欢的 emoji,你会发现它们在你的日常生活中非常有用。
表情符号摇滚明星
我第一次看到这个简洁的 GitHub Gist 是关于表情符号推荐的。作者François确实涵盖了各种各样的情况。一开始,我一直试着坚持使用它们,但有时很难在列表中找到我想要的表情。于是,我开始刻意收集我自己的 emoji 明星。
这是我的清单:
表情符号 | 提交信息示例 |
---|---|
🎉:tada: |
第一次提交 |
🔨:hammer: |
更新代码 改进代码 |
📜✏️📚📝📖:scroll: :pencil: :books: :memo: :book: |
更新 README.md 添加文档 |
👕 :tshirt: 👔 :necktie: |
应用 linter 格式化代码 |
⚗️🧪:alembic: :test_tube: |
添加测试 更新单元测试 |
👶:baby: |
添加基本实现 添加部分实现。 |
🏅:medal_sports: |
完成实施 |
⤴️:arrow_heading_up: |
升级依赖 升级版本 |
⤵️:arrow_heading_down: |
降级依赖 降级版本 |
🎨💅💄:art: :nail_care: :lipstick: |
改善视觉效果 ,增强 UI/UX |
♿️:wheelchair: |
改善无障碍功能 |
✨🚿:sparkles: :shower: |
干净的代码 |
🔥🔫✂️:fire: :gun: :scissors: |
删除目录 删除不需要的文件 |
💩 :poop: 🍝 :spaghetti: |
弄乱遗留代码 应用脏补丁 |
⚡️:zap: |
引入重大变更 |
🐛:bug: |
修复错误 |
🚧:construction: |
应用临时补丁 改进正在进行的工作 |
🚑:ambulance: |
应用紧急修复 修复严重错误 |
🌙:crescent_moon: |
更新夜间构建配置 创建后台作业 |
🐰:rabbit: |
添加 RabbitMQ 要求 |
🐋:whale: |
添加 Dockerfile 更新 docker-compose |
:octocat: |
添加 .github 目录(仅限github.com ) |
🦊:fox_face: |
添加 .gitlab 目录 更新 .gitlab-ci.yml |
🎁 :gift: 📦 :package: |
添加新的依赖项 添加新功能 |
🔔:bell: |
添加警报/警告 |
🔕 :no_bell: 🔇 :mute: |
静音警报/警告 |
🔐🔒🛡:closed_lock_with_key: :lock: :shield: |
提高安全性 设置更多权限 |
🔓 :unlock: 🔑 :key: |
解除权限 取消限制 |
📁:file_folder: |
更改目录结构 |
⌚️ :watch: ⏱ :stopwatch: |
添加分析器 添加性能测量 |
📊:bar_chart: |
提高性能 |
🔖:bookmark: |
更新版本 |
🎒 :school_satchel: 🚀 :rocket: |
构建并打包 为部署/启动做好准备 |
📈:chart_with_upwards_trend: |
提高性能 |
📉:chart_with_downwards_trend: |
最大限度地减少资源使用 |
📎:paperclip: |
附加文档/文件 |
✈️:airplane: |
迁移到新界面 创建数据迁移 |
🏁:checkered_flag: |
完成实施, 满足路线图检查点 |
🎭:performing_arts: |
合并分支 合并两个模块 |
⚓️:anchor: |
放置 TODO 锚点 |
🚩:triangular_flag_on_post: |
满足路线图检查点 |
©️ :copyright: ®️ :registered: |
添加LICENSE文件 更新LICENSE |
根据上下文选择表情符号
当然,了解上面列出的各种表情符号很有帮助,但我更经常会想方设法地回忆一个与我已经写好的(或想到的)提交信息最契合的表情符号。你不一定能在像你看到的这样的列表中找到最接近的表情符号。这时,你更需要一个以主题/上下文为导向的表格,这样你就可以轻松地从中找到最符合你意图的表情符号。我说的就是这样一张表格:
表情符号 | 语境(动词/名词/形容词) |
---|---|
🐛 :bug: 🔨 :hammer: 🔧 :wrench: 🗜 :clamp: |
正确 修复 错误修复 |
🐚 :shell: 👐 :open_hands: 📦 :package: 🎁 :gift: 🗳 :ballot_box: 🗃 :card_file_box: 📥 :inbox_tray: 📤 :outbox_tray: |
包裹 保持 覆盖 壳 保险箱 包含 |
🎭🤝🗜📎🖇🔗🔀🔃🔄👥:performing_arts: :handshake: :clamp: :paperclip: :paperclips: :link: :twisted_rightwards_arrows: :arrows_clockwise: :arrows_counterclockwise: :busts_in_silhouette: |
合并 混合 连接 卷积 附加 前置 统一 组合 提炼 握手 |
🔥 :fire: 🔫 :gun: 💣 :bomb: 🗑 :wastebasket: 🚮 :put_litter_in_its_place: ⚰️ :coffin: ☠️ :skull_and_crossbones: 💀 :skull: ✝️ :latin_cross: ❌ :x: ❎ :negative_squared_cross_mark: ✖️ :heavy_multiplication_x: 📤 :outbox_tray: ✂️ :scissors: 🔪 :knife: ⚔️ :crossed_swords: 🗃 :card_file_box: 🗄 :file_cabinet: |
移除 删除 删除 取消 排除 档案 |
📶📈📉↕️⬆️⬇️🍽🔢:signal_strength: :chart_with_upwards_trend: :chart_with_downwards_trend: :arrow_up_down: :arrow_up: :arrow_down: :plate_with_cutlery: :1234: |
排序 排列 重新 排序 |
🔨🔧🎖✨🥇🎨🖌💄💅👠🌈🐦:hammer: :wrench: :medal_military: :sparkles: :1st_place_medal: :art: :paintbrush: :lipstick: :nail_care: :high_heel: :rainbow: :bird: |
改善 增强 升级 刷新 美丽 修饰 化妆品 |
💉🔨🔧✔️✅☑️🖊:syringe: :hammer: :wrench: :heavy_check_mark: :white_check_mark: :ballot_box_with_check: :pen: |
应用 设置 放置 提交 注册 确认 |
➕📎🖇📦🎁🏁⬆️🌱⏫📥👶🐤🚼🆕🌼✨❇️🔌:heavy_plus_sign: :paperclip: :paperclips: :package: :gift: :checkered_flag: :arrow_up: :seedling: :arrow_double_up: :inbox_tray: :baby: :baby_chick: :baby_symbol: :new: :blossom: :sparkles: :sparkle: :electric_plug: |
添加 插入 更新 升级 增加 注册 附加 前置 功能 |
👕 :shirt: / :tshirt: 🎖 :medal_military: 📏 :straight_ruler: 📐 :triangular_ruler: 🚿 :shower: 💊 :pill: 🎨 :art: 🖌 :paintbrush: 💄 :lipstick: 💅 :nail_care: 👠 :high_heel: 🌈 :rainbow: |
lint clean 格式 样式 重构 |
🏗 :building_construction: 🔨 :hammer: 🔧 :wrench: 🛠 :hammer_and_wrench: ♻️ :recycle: |
重构 重写 重新 建立 重新 实现 重新思考 回收 |
⚗️ :alembic: ⏱ :stopwatch: 🔍 :mag: 🔎 :mag_right: 🕵 :detective: 🔭 :telescope: 🔬 :microscope: 🗜 :clamp: |
测试 评估 考试 检查 审查 重新思考 监督固定 装置 |
✉️📤📡🚀✈️🛩🚁🏹📰🗞📺📻🎤📢🔈:envelope: :outbox_tray: :satellite: :rocket: :airplane: :small_airplane: :helicopter: :bow_and_arrow: :newspaper: :newspaper_roll: :tv: :radio: :microphone: :loudspeaker: :speaker: |
发送 搬出 发布 转换 给予 生产 |
❓ :question: ❔ :grey_question: 🍴 :fork_and_knife: 📥 :inbox_tray: |
询问 请求 询问 查询 取回 接收 拿走 |
👂 :ear: 🎧 :headphone: ⏳ :hourglass_flowing_sand: ⏸ :pause_button: 📨 :incoming_envelope: ✉️ :envelope: ☎️ :phone: 📲 :calling: |
消费 监听 订阅 注册 等待 回调 待命 |
⏱ :stopwatch: ⏲ :timer: ⏰ :alarm_clock: 📆 :calendar: 🗓 :spiral_calendar: 🏃 :runner: |
作业 cron 时间表 时间 段 重复 重复性 |
🔍🔎🔦🕵🔭🔬🐶🐕👃:mag: :mag_right: :flashlight: :detective: :telescope: :microscope: :dog: :dog2: :nose: |
搜索 查找 查找 浏览 查询 选择 |
⬇️ :arrow_down: ⏬ :arrow_double_down: ⤵️ :arrow_heading_down: 👎 :thumbsdown: |
回滚 降级 重置重新 填充 恢复 撤消 |
📜 :scroll: 📝 :pencil: ✍️ :writing_hand: 📰 :newspaper: 🗞 :newspaper_roll: 📋 :clipboard: 📖 :book: 📑 :bookmark_tabs: 📚 :books: 📘 :blue_book: 📙 :orange_book: 📓 :notebook: 🖊 :pen: ✏️ :pencil2: 🖨 :printer: 📠 :fax: 💬 :speech_balloon: |
日志 记录 存储 草稿 注释 文本 README 指南 手册 评论 |
⚠️✋❗️❗️❕:warning: :hand: :heavy_exclamation_mark: :exclamation: :grey_exclamation: |
避免 防止 小心 安全 注意 当心 注意 警告 |
🛑 :stop_sign: ☣️ :biohazard: 💀 :skull: ☠️ :skull_and_crossbones: 🔥 :fire: ⏹ :stop_button: ⚰️ :coffin: ✝️ :latin_cross: ✖️ :heavy_multiplication_x: |
错误 异常 危险 停止 崩溃 中止 僵局 |
👨👩:man: :woman: |
用户 人类 操作员 |
📺📱🖼🖌✒️🎨🌈:tv: :iphone: :framed_picture: :paintbrush: :black_nib: :art: :rainbow: |
UI UX HTML CSS 前端 视图 面 画布 图像 图片 |
☸️⚙️🎛🛠⚒🔨🔧🗜🔢🔡🔠:wheel_of_dharma: :gear: :control_knobs: :hammer_and_wrench: :hammer_and_pick: :hammer: :wrench: :clamp: :1234: :abcd: :capital_abcd: |
配置 设置 参数 参数 参考 夹具 |
🤡👒🎭🎬🌚🕶🎠🍼👶🐤🚼:clown: :womans_hat: :performing_arts: :clapper: :new_moon_with_face: :dark_sunglasses: :carousel_horse: :baby_bottle: :baby: :baby_chick: :baby_symbol: |
模拟 假 存根 测试 评估 冒充 即兴 模拟 效仿 行为 |
🔑 :key: 🗝 :old_key: 🏷 :label: 🔗 :link: 👶 :baby: 🐤 :baby_chick: 💼 :briefcase: 📁 :file_folder: 📂 :open_file_folder: |
变量 字段 属性 键 项 元素 |
🏃 :runner: 🚴 :bicyclist: 🚵 :mountain_bicyclist: 🤸♂ :man_cartwheeling: 🤸♀ :woman_cartwheeling: 🎬 :clapper: 📢 :loudspeaker: 🔈 :speaker: 🚗 :car: 🚀 :rocket: ✈️ :airplane: 🛩 :small_airplane: 👨🏭 :man_factory_worker: 👩🏭 :woman_factory_worker: |
方法 功能 行为 动作 播放 执行 运行 |
🛑 :stop_sign: ⛔️ :no_entry: 🚫 :no_entry_sign: 🚷 :no_pedestrians: 🚳 :no_bicycles: 🚱 :non-potable_water: 🛡 :shield: ⚠️ :warning: ✖️ :heavy_multiplication_x: ✋ :hand: ⏹ :stop_button: 🏰 :european_castle: 🚨 :rotating_light: 🚓 :police_car: 👮 :policeman: 👮♀ :policewoman: 🚔 :oncoming_police_car: ❗️ :heavy_exclamation_mark: 👨⚖ :man_judge: 👩⚖ :woman_judge: 👽 :alien: |
限制 界限 界限 阈 值上限 下限 限制 约束 抑制 |
🗒 :spiral_notepad: 📓 :notebook: 📏 :ruler: 📐 :triangular_ruler: 📤 :outbox_tray: 📦 :package: 🔍 :mag: 🔎 :mag_right: 🕵 :detective: 🔢 :1234: 🔡 :abcd: 🔠 :capital_abcd: 📂 :open_file_folder: 🐚 :shell: 🚰 :potable_water: 🖥 :desktop_computer: 👨🏫 :man_teacher: 👩🏫 :woman_teacher: |
详细 信息 数据 主体 内容 |
📦📥💉💾💿⌨️🔑🗝🔐🔏🔒🏦✍️📋📓🗒📝🖊✏️🖨📠🎞:package: :inbox_tray: :syringe: :floppy_disk: :cd: :keyboard: :key: :old_key: :closed_lock_with_key: :lock_with_ink_pen: :lock: :bank: :writing_hand: :clipboard: :notebook: :spiral_notepad: :pencil: :pen: :pencil2: :printer: :fax: :film_strip: |
存储 持久 保存 保持 序列化 写入 缓冲 内存 |
📤👓👂🔑🗝:outbox_tray: :eyeglasses: :ear: :key: :old_key: |
加载 获取 读取 反序列化 查询 |
🔒 :lock: 🔐 :closed_lock_with_key: 🔏 :lock_with_ink_pen: 🛡 :shield: 💂 :guardsman: 💂♀ :guardswoman: |
安全 ACL 屏蔽 保护 防病毒 守卫 加密 争夺 哈希 标志 杂乱 安全 代码 隐藏 隐藏 秘密 锁 限制 封面 |
🔑 :key: 📂 :open_file_folder: 📖 :open_book: 🔦 :flashlight: 📺 :tv: 📰 :newspaper: 🔈 :speaker: 📢 :loudspeaker: 🆓 :free: |
解密 解扰 解码 显示 打开 揭示 揭开 释放 揭露 发布 自由 认证 授权 |
🌐🗺🌍🌎🌏🕸🏙🏣📮:globe_with_meridians: :world_map: :earth_africa: :earth_americas: :earth_asia: :spider_web: :cityscape: :post_office: :postbox: |
URL URI 路径 地址 位置 访问 路线 标识符 |
🖼📺🖥📽🎦🖨📏📐🖊✏️🎨🖌:framed_picture: :tv: :desktop_computer: :film_projector: :cinema: :printer: :ruler: :triangular_ruler: :pen: :pencil2: :art: :paintbrush: |
展示 显示 可见 说明 演示 绘画 绘制 打印 |
✂️🏇🐎🐒🏎:scissors: :horse_racing: :racehorse: :monkey: :racing_car: |
跳过 忽略 忽视 跳转 忽略 取消 关注 忘记 |
⤴️♻️🔃🔄🔁🔂⏮🏗🎡:arrow_heading_up: :recycle: :arrows_clockwise: :arrows_counterclockwise: :repeat: :repeat_one: :previous_track_button: :building_construction: :ferris_wheel: |
重试 重新启动 重启 重新运行重新 建立重新 尝试 重建 重新实现 重构 |
🏃 :runner: 🚗 :car: 🏎 :racing_car: 🚅 :bullettrain_front: 🚈 :light_rail: ✈️ :airplane: 🚀 :rocket: 🛫 :flight_departure: 🌩 :cloud_with_lightning: ☂️ :open_umbrella: ☔️ :umbrella: 🐎 :racehorse: 🏇 :horse_racing: 💥 :boom: 🌋 :volcano: 🌅 :sunrise: ⏯ :play_or_pause_button: 🏗 :building_construction: |
运行 执行 启动 建立 尝试 尝试 应用 驱动 移动 开始 开始 启动 构造 实施 初始化 初始化 |
⏹ :stop_button: ⏸ :pause_button: 🛑 :stop_sign: ✋ :hand: ❗️ :heavy_exclamation_mark: 💀 :skull: ☠️ :skull_and_crossbones: 🛬 :flight_arrival: 🏁 :checkered_flag: ✖️ :heavy_multiplication_x: ❎ :negative_squared_cross_mark: 📴 :mobile_phone_off: 🔫 :gun: ⚰️ :coffin: ✝️ :latin_cross: 💣 :bomb: |
停止 结束 暂停 中止 关闭 退出 等待 保持 阻拦 暂停 抑制 静默 静默 终止 中断 破坏 处置 |
🎒 :school_satchel: 🚀 :rocket: ✈️ :airplane: ⬆️ :arrow_up: ⏫ :arrow_double_up: 🔼 :arrow_up_small: 🆙 :up: 📢 :loudspeaker: 🔈 :speaker: 📯 :postal_horn: 🎈 :balloon: 🎊 :confetti_ball: 🎉 :tada: 📰 :newspaper: 🗞 :newspaper_roll: 📡 :satellite: 🛰 :artificial_satellite: |
部署 安装 设置 启动 |
👈 :point_left: 👉 :point_right: ☝️ :point_up: 👇 :point_down: 👣 :footprints: 🐾 :paw_prints: ⤵️ :arrow_heading_down: ⤴️ :arrow_heading_up: ↪️ :arrow_right_hook: ↩️ :leftwards_arrow_with_hook: 🔀 :twisted_rightwards_arrows: ⛲️ :fountain: ♻️ :recycle: 🔁 :repeat: 🔂 :repeat_one: 💱 :currency_exchange: |
重定向 变换 改变 直接 引导 对齐 |
0️⃣ :zero: ❤️ :heart: 💟 :heart_decoration: 🌄 :sunrise_over_mountains: ☀️ :sunny: 🌱 :seedling: 🌾 :ear_of_rice: 💻 :computer: 🏠 :house: 🏡 :house_with_garden: 🦋 :butterfly: ⚙️ :gear: 🕯 :candle: 🌼 :blossom: 🐟 :fish: 🛐 :place_of_worship: ⛪️ :church: 🕌 :mosque: |
底座 底层 核心 中心 中间 心脏 根部 家 起源 |
💀 :skull: ☠️ :skull_and_crossbones: ☣️ :hazard: ☣️ :biohazard: 🕳 :hole: 🔫 :gun: 🌋 :volcano: 💥 :boom: 🐍 :snake: 💸 :money_with_wings: 🤜 :fight: 🤼♂ :men_wrestling: 🤼♀ :women_wrestling: 🥊 :boxing_glove: 🏥 :hospital: 🚑 :ambulance: |
侵入 违反 漏洞 访问 漏洞 渗透 间谍 监听 黑客 妥协 揭露 |
📦🗃🗄🔌🔲🔳⬜️⬛️🍯🔨🛠🔧💻💽📎🖇:package: :card_file_box: :file_cabinet: :electric_plug: :black_square_button: :white_square_button: :white_large_square: :black_large_square: :honey_pot: :hammer: :hammer_and_wrench: :wrench: :computer: :minidisc: :paperclip: :paperclips: |
包 依赖 项 模块 库 组件 插件 插件 对象 容器 映像 |
🌈 rainbow: 🥞 :pancakes: 🍔 :burger: 🌭 :hotdog: 📌 :pushpin: 📍 :round_pushpin: 🤹♂ :man_juggling: 🤹♀ :woman_juggling: |
中间件 中间人 经销商 层 |
🕸📶📊📁📂🌳🍃:spider_web: :signal_strength: :bar_chart: :file_folder: :open_file_folder: :tree: :leaf: |
结构 组织 格式 树叶 边 图 网络 |
☂️☔️🏕⚔️🗺🌐:open_umbrella: :umbrella: :camping: :crossed_swords: :world_map: :globe_with_meridians: |
覆盖 范围 阴影 区域 支持 解析 |
♻️🔁🔂🔃🔄🔢🔡🔠:recycle: :repeat: :repeat_one: :arrows_clockwise: :arrows_counterclockwise: :1234: :abcd: :capital_abcd: |
循环 while for 执行 回送 重复 重复 迭代 枚举 |
🚧 :construction: 🚨 :rotating_light: ⚠️ :warning: ⌛️ :hourglass: ⏳ :hourglass_flowing_sand: ⏲ :timer_clock: ⏱ :stopwatch: 🚦 :vertical_traffic_light: 🚥 :traffic_light: |
临时 工作进行中 WIP 暂停 等待 暂停 阻止 阻碍 |
进一步了解
请参阅表情符号备忘单,了解可在 GitHub 或其他平台上使用的表情符号的完整列表。
文章来源:https://dev.to/babakks/emojis-for-better-git-commit-messages-52fa