# Git 規範 ### **Commit Message 種類** * feat: 新增/修改功能 (feature) * fix: 修補 bug (bug fix) * docs: 文件 (documentation) * style: 格式 (不影響程式碼運行的變動 white-space, formatting, missing semi colons, etc) * refactor: 重構 (既不是新增功能,也不是修補 bug 的程式碼變動) * perf: 改善效能 (A code change that improves performance) * test: 增加測試 (when adding missing tests) * chore: 建構程序或輔助工具的變動 (maintain) * revert: 撤銷回覆先前的 commit 例如:revert: type(scope): subject (回覆版本:xxxx) ### **Commit Message 內容(待確認)** * 不要使用句號. 。 * 標點符號使用半形 * 詳細說明內需加-並以在後面一個空白隔開 ``` fix: 修正OOO問題 - 新增A - 刪除B ``` * 若只有變更一項功能,則不寫詳細說明 ``` chore: 拔測試console ``` ### **分支操作** * 情境:v1.4.10 上正式出測前爆炸, 當前 release 最新版本為 v1.4.11 * 方法一: 發送 merge request 至 master, 從 master 中拉一條 hotfix 出來修改後將 hotfix merge 到 master & release, 此時新的 release 版本為 v1.4.12 * 方法二: 從 resease 拉一條 hotfix 出來, 並且在開發分支修正後送測, 沒問題就把修正的版本 merge 到 hotfix 上
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up