Created
May 7, 2020 07:55
-
-
Save metavige/665bf0da1d93775873945945669535ef to your computer and use it in GitHub Desktop.
git_commit_template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# <類型>(<更動範圍>): (類型的值見下面描述) <主題> (最多50個字) | |
# 解釋為什麼要做這些改動 | |
# |<---- 請限制每行最多72個字 ---->| | |
# 提供相關文章和其它資源的鏈接和關鍵字 | |
# 例如: Github issue #23 | |
# 如果是要關閉特定 Issue 或 Bug. 可以使用 Closes PROJECT-1 or Resolves PROJECT-1 or Fixes PROJECT-1 | |
# 具體參考 https://docs.gitlab.com/ee/user/project/integrations/jira.html | |
# --- 提交 結束 --- | |
# 類型值包含 | |
# feat (新特性) | |
# fix (bug修復) | |
# docs (文件改動) | |
# style (格式化, 遺漏分號等; 不包括正式程式碼變動) | |
# refactor (重構程式碼) | |
# test (添加遺漏的測試, 重構測試, 不包括正式程式碼變動) | |
# chore (更新grunt任務等; 不包括正式環境程式碼變動) | |
# perf (性能優化) | |
# build (改變build工具) | |
# ci (與ci相關的設定) | |
# add (增加一些跟功能無關的檔案) | |
# 3rd (增加第三方) | |
# -------------------- | |
# 注意 | |
# 主題和內容以一個空行分隔 | |
# 主題限制為最大50個字 | |
# 更動範圍,用來解釋變更的範圍,像是資料庫,控制器等 | |
# 主題行結束不用標點 | |
# 主題行使用命令語氣 (勿使用疑問句) | |
# 內容每行72個字 | |
# 內容用於解釋為什麼和是什麼,而不是怎麼做 | |
# 內容多行時以 '-' 分隔 | |
# -------------------- | |
# 範本更多信息詳見下面地址 | |
# https://gist.github.com/adeekshith/cd4c95a064977cdc6c50 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment