美文网首页
git commit 模板设置

git commit 模板设置

作者: may505 | 来源:发表于2020-01-08 16:00 被阅读0次

1.设置模板路径,其中path就是commit模板路径
git config --global commit.template path
2.设置模板使用什么软件打开
git config --global core.editor [编辑器名字]
比如
git config --global core.editor text
我的提交模板,网上找的

fix(<模块>): <描述>

#<具体描述>

#<问题单号>

# type 字段包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
# scope:用于说明 commit 影响的范围,比如数据层、控制层、视图层等等。
# subject:是 commit 目的的简短描述,不超过50个字符
# Body:部分是对本次 commit 的详细描述,可以分成多行
# Footer:用来关闭 Issue或以BREAKING CHANGE开头,后面是对变动的描述、以及变动理由和迁移方法

相关文章

  • git commit 模板设置

    1.设置模板路径,其中path就是commit模板路径git config --global commit.tem...

  • git commit 提交规范(优化)

    git commit 提交模板和规范 Git每次提交代码,都要写 Commit message(提交说明),否则就...

  • 规范使用commit message

    commit message 模板 git czhttps://github.com/streamich/git-cz

  • Git commit template 模板设定

    git config --global commit.template [模板文件路径] 例如:git conf...

  • Git Commit Message 规范与模板

    Git Commit Message 规范与模板 业界标准:AngularJS 来自 AngularJS 所用的规...

  • git rebase

    每次提交如果先执行git pull再执行git commit,再执行git push 由于公司未将git设置为单次...

  • GIT commit 回退

    git add .git commit -m "xxx" git log // 查看commit记录commit ...

  • 版本回退

    1:git reset xxxxxx直接设置到某个commit,后面commit的会被删掉,推到远程仓库的时候需要...

  • Git的基本用法

    Git配置 设置你的名字和email,这是commit时的签名git config --global user.n...

  • git如何配置模板文件

    1、创建git模板 创建commit.template文件,其内容为团队制定的Git提交注释规范,如: 2、通过g...

网友评论

      本文标题:git commit 模板设置

      本文链接:https://www.haomeiwen.com/subject/hejsactx.html