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修复流程跑通了






原文地址:https://www.cnblogs.com/xuxaut-558/p/10049486.html