38

用生动有趣的 emoij 美化你的 commit log

 4 years ago
source link: https://www.tuicool.com/articles/QviQNnf
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

zeU7FrB.gif

周日了,就不甩长篇大论的技术文章了,来点轻松有趣的吧。

先来看看下面仓库的 commit log (来自 Antd 仓库),使用了很多 emoij 表情。

fya6rqb.jpg!web

并不是程序员喜欢故意卖萌,而是添加了 emoji 表情的提交记录真的能包含很多有用信息,而且阅读体验非常棒。

使用效果

对的,每个 emoji 都是有自己具体含义的,比如下面常用的几个:

  • :tada::初次提交

  • :art::改进代码结构/代码格式

  • :bug::修复bug

  • ...

下面是我自己的仓库的提交情况:

euIF32e.jpg!web

使用方法

每个 emoji 都有自己对应的代码,你只需要在编写 commit log 时带上这个代码就可以了,比如:

  • :tada::初次提交 对应代码:  :tada:

  • :art::改进代码结构/代码格式 对应代码:  :art:

  • :bug::修复bug 对应代码:  :bug:

  • ...

使用参考

初次使用当然记不住这么多代码和含义啦,大家如果要使用的话可以参考下面的网站:

https://gitmoji.carloscuesta.me/

网站中详细列举了所有 emoji 对应的含义,你可以自行选择取舍。

7BziAb3.jpg!web

如果你有好的建议,或新的好玩的 emoji 欢迎贡献给官方。

https://github.com/carloscuesta/gitmoji/


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK