• 请不要在回答技术问题时复制粘贴 AI 生成的内容
luffy
V2EX  ›  程序员

git commit 经常出现的 chore 字眼是什么意思

  •  1
     
  •   luffy · Aug 5, 2022 · 11585 views
    This topic created in 1554 days ago, the information mentioned may be changed or developed.

    这个单词主要表示什么场景?

    realrojeralone
    realrojeralone
    Aug 5, 2022
    1
    琐碎操作,对代码功能没有任何影响的操作,比如删除了几行无用的代码、注释等清理操作
    dabney777
    dabney777
    Aug 5, 2022❤️3
    2
    改了点代码但是又没什么影响的时候,参考下 semantic commit message:
    https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716
    GreatAuk
    GreatAuk
    Aug 5, 2022❤️24
    3
    💍 test: Adding missing tests
    🎸 feat: A new feature
    🐛 fix: A bug fix
    🤖 chore: Build process or auxiliary tool changes
    ✏️ docs: Documentation only changes
    💡 refactor: A code change that neither fixes a bug or adds a feature
    💄 style: Markup, white-space, formatting, missing semi-colons...

    反正我是不知道选哪个的时候,我就 chore 了
    dcalsky
    dcalsky
    Aug 5, 2022
    4
    chore: 不影响生产代码的改动,比如改了 webpack.config.js, dockerfile, makefile, go mod, package.json, .gitignore.
    Ruabc
    Ruabc
    Aug 5, 2022
    5
    杂事、琐事,意指其他。不是 feat 、test 、fix 、doc 、performance 等。
    luffy
    luffy
    OP
    Aug 5, 2022
    6
    原来如此。

    如果单纯的看中文翻译,确实很难理解到具体的表示场景
    zhuweiyou
    zhuweiyou
    Aug 5, 2022
    7
    不做开源项目 没必要那么复杂
    yuhangch
    yuhangch
    Aug 5, 2022
    8
    所以 chore 是哪个词或者 哪几个词呢?
    wenzichel
    wenzichel
    Aug 5, 2022
    9
    流程上或者配置里的一些改动
    christin
    christin
    Aug 5, 2022 via iPhone
    10
    @GreatAuk 这些是在哪找的啊,看着挺好玩的。
    Vaspike
    Vaspike
    Aug 5, 2022❤️4
    11


    @christin #10
    如图所示,这是各类 IDE 中 commit template 之类中的提示,不过如果是问的各类的图标我就不知道了
    christin
    christin
    Aug 5, 2022 via iPhone
    13
    @Vaspike
    @runningowl 感谢感谢
    sytone
    sytone
    Aug 5, 2022
    14
    Oxford Languages 中的的释义:
    a routine task, especially a household one.

    原意指家务活,在 git commit 里指的是一些琐碎的且没有明确分类的事情吧。
    bugfan
    bugfan
    Aug 5, 2022
    15
    @GreatAuk 嗯呢,这才是标准操作
    masker
    masker
    Aug 5, 2022 via Android
    16
    git commit 一些规范吧
    GreatAuk
    GreatAuk
    Aug 5, 2022
    17
    @christin 如果本地安装有 npm, 可以直接跑 npx git-cz
    sunbreak
    sunbreak
    Aug 5, 2022 via iPhone
    18
    @Vaspike 请教下这是 Goland 的插件么
    pikesui
    pikesui
    Aug 5, 2022
    19
    为什么要有 gitmoji 这种东西
    Vaspike
    Vaspike
    Aug 5, 2022
    20
    @sunbreak #18
    是的
    Jetbrains 的 IDE 都可以用这个插件: https://plugins.jetbrains.com/plugin/9861-git-commit-template
    ntnyq
    ntnyq
    Aug 5, 2022
    21
    杂项修改。

    @dcalsky 你这个列举的 应该属于 build 或者 ci 的吧
    TankZZZ
    TankZZZ
    Aug 5, 2022
    22
    nekoneko
    nekoneko
    Aug 5, 2022
    23
    @yuhangch #8 #8 chore 就是 chore 啊, 杂活的意思
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4737 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 76ms · UTC 08:24 · PVG 16:24 · LAX 00:24 · JFK 03:24
    ♥ Do have faith in what you're doing.