前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >git commit emoji 使用指南

git commit emoji 使用指南

作者头像
品茗IT
发布2019-09-12 09:43:51
7550
发布2019-09-12 09:43:51
举报
文章被收录于专栏:品茗IT品茗IT

概述

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

提交格式

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

代码语言:javascript
复制
:emoji1: your commit info

初次提交示例:

代码语言:javascript
复制
git commit -m ":tada: Initialize Repo"

具體的git emoji 規範網址

圖片網址 https://gitmoji.carloscuesta.me/

Suggested Emojis

Emoji

Raw Emoji Code

Description

:art:

:art:

when improving the format/structure of the code

:newspaper:

:newspaper:

when creating a new file

:pencil:

:pencil:

when performing minor changes/fixing the code or language

:racehorse:

:racehorse:

when improving performance

:books:

:books:

when writing docs

:bug:

:bug:

when reporting a bug, with @FIXMEComment Tag

:ambulance:

:ambulance:

when fixing a bug

:penguin:

:penguin:

when fixing something on Linux

:apple:

:apple:

when fixing something on Mac OS

:checkered_flag:

:checkered_flag:

when fixing something on Windows

:fire:

:fire:

when removing code or files, maybe with @CHANGED Comment Tag

:tractor:

:tractor:

when change file structure. Usually together with :art:

:hammer:

:hammer:

when refactoring code

:umbrella:

:umbrella:

when adding tests

:microscope:

:microscope:

when adding code coverage

:green_heart:

:green_heart:

when fixing the CI build

:lock:

:lock:

when dealing with security

:arrow_up:

:arrow_up:

when upgrading dependencies

:arrow_down:

:arrow_down:

when downgrading dependencies

:fast_forward:

:fast_forward:

when forward-porting features from an older version/branch

:rewind:

:rewind:

when backporting features from a newer version/branch

:shirt:

:shirt:

when removing linter/strict/deprecation warnings

:lipstick:

:lipstick:

when improving UI/Cosmetic

:wheelchair:

:wheelchair:

when improving accessibility

:globe_with_meridians:

:globe_with_meridians:

when dealing with globalization/internationalization/i18n/g11n

:construction:

:construction:

WIP(Work In Progress) Commits, maybe with @REVIEW Comment Tag

:gem:

:gem:

New Release

:egg:

:egg:

New Release with Python egg

:ferris_wheel:

:ferris_wheel:

New Release with Python wheel package

:bookmark:

:bookmark:

Version Tags

:tada:

:tada:

Initial Commit

:speaker:

:speaker:

when Adding Logging

:mute:

:mute:

when Reducing Logging

:sparkles:

:sparkles:

when introducing New Features

:zap:

:zap:

when introducing Backward-InCompatible Features, maybe with @CHANGED Comment Tag

:bulb:

:bulb:

New Idea, with @IDEA Comment Tag

:snowflake:

:snowflake:

changing Configuration, Usually together with :penguin: or :ribbon: or :rocket:

:ribbon:

:ribbon:

Customer requested application Customization, with @HACK Comment Tag

:rocket:

:rocket:

Anything related to Deployments/DevOps

:elephant:

:elephant:

PostgreSQL Database specific (Migrations, Scripts, Extensions, ...)

:dolphin:

:dolphin:

MySQL Database specific (Migrations, Scripts, Extensions, ...)

:leaves:

:leaves:

MongoDB Database specific (Migrations, Scripts, Extensions, ...)

:bank:

:bank:

Generic Database specific (Migrations, Scripts, Extensions, ...)

:whale:

:whale:

Docker Configuration

:handshake:

:handshake:

when Merge files

:cherries:

:cherries:

when Commit Arise from one or more Cherry-Pick Commit(s)

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019-08-22 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 概述
  • 提交格式
  • 具體的git emoji 規範網址
  • Suggested Emojis
相关产品与服务
数据库
云数据库为企业提供了完善的关系型数据库、非关系型数据库、分析型数据库和数据库生态工具。您可以通过产品选择和组合搭建,轻松实现高可靠、高可用性、高性能等数据库需求。云数据库服务也可大幅减少您的运维工作量,更专注于业务发展,让企业一站式享受数据上云及分布式架构的技术红利!
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档