代码提交的时候可以插入表情了-GitHub表情的使用

GitHub官方有个表情项目,旨在丰富文字信息。意味着你可以在提交代码的时候,在提交信息里面添加表情,同时也可以在项目的ReadMe.md文件里面使用表情。除此之外,当然还有项目在GitHub上的wiki页面,总之在GitHub的页面上,都可以使用。

GitHub官方表情项目地址:github / gemoji

效果预览

项目README.md

项目wiki页面

代码提交时

可用表情清单

可以访问这个页面查看所有支持的表情以及对应的代码

使用方法

使用方法为前后冒号包围表情代号的句法。

:blush: 会显示成

所以你在提交代码的时候可以这样写提交信息:

git commit –m 'commit some changes :blush:'

支持的网站

上面例出的表情不仅适用于GitHub,也适用于其他地方。下面引用原文表述:

A one pager listing the different emoji emoticons supported on CampfireGitHubBasecamp NextTeambox,Plug.djFlowdockSprint.lyGitLabKandanandbangTrelloHallQiitaTrelloZendeskRuby-ChinaGrove,IdobataNodeBB ForumsSlackStreamupQuipOrganisedMinds, and Hackpad.

上面例出的网站均支持这种代码式的表情插入。

同样,你可以让自己的项目支持这种表情,具体参见:

Ruby – github.com/github/gemojigithub.com/jsw0528/rails_emoji
Javascript – github.com/kof/emoticons
Javascript – github.com/hassankhan/emojify.js
Alt. JS version (+node.js) - github.com/henrikjoreteg/emoji-images.js
Objective-C – https://github.com/diy/nsstringemojize
Java - https://github.com/pepibumur/emojize

Reference

https://github.com/arvida/emoji-cheat-sheet.com

https://github.com/github/gemoji

原文地址:https://www.cnblogs.com/Wayou/p/use_emoji_in_github.html