目录

Git常用

修改全局名称及邮箱

当发现提交时的用户名不对时,用下面的指令修改

1
2
git config --global user.name "prehisle"
git config --global user.email prehisle@gmail.com

git commit message编写

1
2
3
4
5
<type>(<scope>): <subject>
// 空一行
<body>
// 空一行
<footer>
1
2
3
4
5
6
7
feat:新功能(feature)
fix:修补bug
docs:文档(documentation)
style: 格式(不影响代码运行的变动)
refactor:重构(即不是新增功能,也不是修改bug的代码变动)
test:增加测试
chore:构建过程或辅助工具的变动

参考:Commit message 和 Change log 编写指南