Git
Git Commit 規則
每個階段完成後需建立一個 git commit,格式遵循 Conventional Commits:
1 | |
| 欄位 | 規範 |
|---|---|
type |
feat / fix / refactor / perf / chore / docs / style / test |
scope |
auth、rbac、seeder 等 |
subject |
祈使句現在式、不超過 72 字元、不加句號 |
cherry-pick + reset
適用情境: 某 commit 包含多檔修改,但你只要其中一個檔案。
流程:
1 | |
這樣等於「拆解 commit」。
原始問題(自然語言)
如何選定特定的git檔案做merge動作