1. 程式人生 > >13.git commit深入講解

13.git commit深入講解

Commit message(提交說明)和Change log 編寫指南

http://www.ruanyifeng.com/blog/2016/01/commit_message_change_log.html

https://github.com/ruanyf/jstutorial

git commit

  • git commit -a -m 跳過暫存區

git commit 提交的顆粒度

Commit message 格式規範


fix bug修復;
docs(guide/services) 對guide/services檔案進行變更;

這樣很容易從commit message提取出change log版本更新說明


提交格式檢視

-git commit 會啟動編輯器讓我們整個來編輯message
-可以寫多行

docs(Features): fix grammar

close #6

-git show HEAD 顯示提交的詳細資訊

-git push

程式碼的提交和BUG修復流程跑通了




來自為知筆記(Wiz)