/*****************************************************************************
* Git commit 信息标准和丢弃必须要的commit
* 说明:
* 提交commit信息需要相对来说详细一点,同时经常会需要剔除一些commit。
*
* 2017-5-19 台湾 中和区 曾剑锋
****************************************************************************/
一、参考文档:
1. 如何写好 Git commit log?
https://www.zhihu.com/question/21209619
2. Commit message 和 Change log 编写指南
http://www.ruanyifeng.com/blog/2016/01/commit_message_change_log.html
3. commit 规范
https://chenzhenjia.gitbooks.io/blog/content/git/commit%E8%A7%84%E8%8C%83.html
4. Git 写出好的 commit message
https://ruby-china.org/topics/15737
5. git 远程仓库版本的回退以及git reset 几种常用方式记录
http://www.cnblogs.com/chenfulin5/p/6732036.html
二、Git丢弃commit信息:
1. git reset --soft <commit id> : 相当与仅仅是隐藏commit信息
2. git reset --mixed <commit id> : 除了保留工作区内容修改,其他的都回退
3. git reset --hard <commit id> : 所有信息都回退到指定的commit状态
三、重置commit:
个人比较喜欢这条:git reset --mixed <commit id>