/Note

Primary LanguageEmacs Lisp

Note

一些常用工具的笔记

  • byobu -- tmux的封装版本
  • magit -- emacs git插件
  • ohmyzsh -- 一款及其好用的shell
  • xface -- linux桌面
  • org-mode
  • labelproject -- 教研室标注平台
  • org2digger -- a simple format conversion tool
  • .spacemacs -- spacemacs config file, contain layers and init settings
  • go-init -- go get some packages supporting coding on ide
  • labelproject.sql -- init mysql database and tables of labelproject
  • make-dir -- init folders required by labelproject
  • shadows.sh -- install shadowsocks server in ubuntu 18.04 LTS
  • shadows-server.json -- config file of ss server
  • shadows-client.json -- config file of ss client
  • 科学上午指南 -- 在终端下利用ssr-helper解析ssr URI 代理,并配置proxychain

Git commit rules

<\type>(<\scope: <\subject>

type

用于说明git commit的类别,只允许使用下面的标识。

feat:新功能(feature)。

fix/to:修复bug,可以是QA发现的BUG,也可以是研发自己发现的BUG。

fix:产生diff并自动修复此问题。适合于一次提交直接修复问题 to:只产生diff不自动修复此问题。适合于多次提交。最终修复问题提交时使用fix docs:文档(documentation)。

style:格式(不影响代码运行的变动)。

refactor:重构(即不是新增功能,也不是修改bug的代码变动)。

perf:优化相关,比如提升性能、体验。

test:增加测试。

chore:构建过程或辅助工具的变动。

revert:回滚到上一个版本。

merge:代码合并。

sync:同步主线或分支的Bug。

scope

scope用于说明 commit 影响的范围,比如数据层、控制层、视图层等等,视项目不同而不同。

例如在Angular,可以是location,browser,compile,compile,rootScope, ngHref,ngClick,ngView等。如果你的修改影响了不止一个scope,你可以使用*代替。

subject

subject是commit目的的简短描述,不超过50个字符。

建议使用中文(感觉**人用中文描述问题能更清楚一些)。