跳過瀏覽

撰寫 commit 訊息

您知道這個頁面會自動從 Github Wiki 頁面 產生嗎?您可以自行到這裡 改善它

在修改 Netty 後,請務必確保您的 commit 訊息包含足夠的背景資訊,讓所有人都能了解變更的用意。除非 commit 非常微不足道,否則請使用下列格式(致謝 Steve Gury 等人)

One line description of your change
 
Motivation:

Explain here the context, and why you're making that change.
What is the problem you're trying to solve.
 
Modifications:

Describe the modifications you've done.
 
Result:

After your change, what will change.

如果您願意,可以將上述訊息新增為 git commit 範本。要這麼做,請建立一個內容符合上述訊息的檔案,但每行都加上一個 #。這麼做會防止 git 提交,因為所有行都會變成註解。您接著可以執行下列 git 指令

git config commit.template ~/.git.commit.template

這時 ~/.git.commit.template 可以是您想要的任何檔案路徑。

最後檢索時間:2024-07-19