Sivo 悉见

git commit 提交emoji图标对照表

匿名 · 更新于 2022/3/1

 

执行 git commit 时使用 emoji 为本次提交打上一个 “标签”, 使得此次 commit 的主要工作得以凸现,也能够使得其在整个提交历史中易于区分与查找。

截取的 git emoji 快照:



commit 格式

git commit 时,提交信息遵循以下格式:

:emoji1: :emoji2: 主题

提交信息主体

Ref <###>

初次提交示例:

git commit -m ":tada: Initialize Repo"

emoji 指南

 
emoji 代码 说明
🎨 (调色板) :art: 改进代码结构/代码格式
⚡️ (闪电)🐎 (赛马) :zap:“:racehorse: 提升性能
🔥 (火焰) :fire: 移除代码或文件
🐛 (bug) :bug: 修复 bug
🚑 (急救车) :ambulance: 重要补丁
✨ (火花) :sparkles: 引入新功能
📝 (备忘录) :memo: 撰写文档
🚀 (火箭) :rocket: 部署功能
💄 (口红) :lipstick: 更新 UI 和样式文件
🎉 (庆祝) :tada: 初次提交
✅ (白色复选框) :white_check_mark: 增加测试
🔒 (锁) :lock: 修复安全问题
🍎 (苹果) :apple: 修复 macOS 下的问题
🐧 (企鹅) :penguin: 修复 Linux 下的问题
🏁 (旗帜) :checked_flag: 修复 Windows 下的问题
🔖 (书签) :bookmark: 发行/版本标签
🚨 (警车灯) :rotating_light: 移除 linter 警告
🚧 (施工) :construction: 工作进行中
💚 (绿心) :green_heart: 修复 CI 构建问题
⬇️ (下降箭头) :arrow_down: 降级依赖
⬆️ (上升箭头) :arrow_up: 升级依赖
👷 (工人) :construction_worker: 添加 CI 构建系统
📈 (上升趋势图) :chart_with_upwards_trend: 添加分析或跟踪代码
🔨 (锤子) :hammer: 重大重构
➖ (减号) :heavy_minus_sign: 减少一个依赖
🐳 (鲸鱼) :whale: Docker 相关工作
➕ (加号) :heavy_plug_sign: 增加一个依赖
🔧 (扳手) :wrench: 修改配置文件
🌐 (地球) :globe_with_meridians: 国际化与本地化
✏️ (铅笔) :pencil2: 修复 typo

下文图标更新地址
🎨
:art:

Improve structure / format of the code.

⚡️
:zap:

Improve performance.

🔥
:fire:

Remove code or files.

🐛
:bug:

Fix a bug.

🚑️
:ambulance:

Critical hotfix.

:sparkles:

Introduce new features.

📝
:memo:

Add or update documentation.

🚀
:rocket:

Deploy stuff.

💄
:lipstick:

Add or update the UI and style files.

🎉
:tada:

Begin a project.

:white_check_mark:

Add, update, or pass tests.

🔒️
:lock:

Fix security issues.

🔐
:closed_lock_with_key:

Add or update secrets.

🔖
:bookmark:

Release / Version tags.

🚨
:rotating_light:

Fix compiler / linter warnings.

🚧
:construction:

Work in progress.

💚
:green_heart:

Fix CI Build.

⬇️
:arrow_down:

Downgrade dependencies.

⬆️
:arrow_up:

Upgrade dependencies.

📌
:pushpin:

Pin dependencies to specific versions.

👷
:construction_worker:

Add or update CI build system.

📈
:chart_with_upwards_trend:

Add or update analytics or track code.

♻️
:recycle:

Refactor code.

:heavy_plus_sign:

Add a dependency.

:heavy_minus_sign:

Remove a dependency.

🔧
:wrench:

Add or update configuration files.

🔨
:hammer:

Add or update development scripts.

🌐
:globe_with_meridians:

Internationalization and localization.

✏️
:pencil2:

Fix typos.

💩
:poop:

Write bad code that needs to be improved.

⏪️
:rewind:

Revert changes.

🔀
:twisted_rightwards_arrows:

Merge branches.

📦️
:package:

Add or update compiled files or packages.

👽️
:alien:

Update code due to external API changes.

🚚
:truck:

Move or rename resources (e.g.: files, paths, routes).

📄
:page_facing_up:

Add or update license.

💥
:boom:

Introduce breaking changes.

🍱
:bento:

Add or update assets.

♿️
:wheelchair:

Improve accessibility.

💡
:bulb:

Add or update comments in source code.

🍻
:beers:

Write code drunkenly.

💬
:speech_balloon:

Add or update text and literals.

🗃️
:card_file_box:

Perform database related changes.

🔊
:loud_sound:

Add or update logs.

🔇
:mute:

Remove logs.

👥
:busts_in_silhouette:

Add or update contributor(s).

🚸
:children_crossing:

Improve user experience / usability.

🏗️
:building_construction:

Make architectural changes.

📱
:iphone:

Work on responsive design.

🤡
:clown_face:

Mock things.

🥚
:egg:

Add or update an easter egg.

🙈
:see_no_evil:

Add or update a .gitignore file.

📸
:camera_flash:

Add or update snapshots.

⚗️
:alembic:

Perform experiments.

🔍️
:mag:

Improve SEO.

🏷️
:label:

Add or update types.

🌱
:seedling:

Add or update seed files.

🚩
:triangular_flag_on_post:

Add, update, or remove feature flags.

🥅
:goal_net:

Catch errors.

💫
:dizzy:

Add or update animations and transitions.

🗑️
:wastebasket:

Deprecate code that needs to be cleaned up.

🛂
:passport_control:

Work on code related to authorization, roles and permissions.

🩹
:adhesive_bandage:

Simple fix for a non-critical issue.

🧐
:monocle_face:

Data exploration/inspection.

⚰️
:coffin:

Remove dead code.

🧪
:test_tube:

Add a failing test.

👔
:necktie:

Add or update business logic

🩺
:stethoscope:

Add or update healthcheck.

🧱
:bricks:

Infrastructure related changes.

🧑‍💻
:technologist:

Improve developer experience

git常用命令

  1. 设置全局信息
git config --global user.name "user.email" 
git config --global user.email "user.email"
ssh-keygen -t rsa -C "user.email"
 
  1. add 远程仓库地址
git remote add [远程仓库名称]  远程仓库地址
git remote set-url --add origin <url2>
git config --global core.autocrlf  [true | input | false]  # 全局设置
git config --local core.autocrlf  [true | input | false] # 针对本项目设置