TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Semantic Git Commit Messages

20 点作者 samrohn777超过 3 年前

9 条评论

jasonpeacock超过 3 年前
I don&#x27;t get it? It&#x27;s just a weak summary of Conventional Commits without any context.<p><a href="https:&#x2F;&#x2F;www.conventionalcommits.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.conventionalcommits.org&#x2F;</a>
yooogle超过 3 年前
First of all, the linked gist doesn&#x27;t provide any new information. It states &quot;See how a minor change to your commit message style can make you a better programmer.&quot; then proceeds to say nothing on that topic.<p>Putting all that aside. I&#x27;ve used the conventional commit format in many of my projects. So far, I&#x27;ve found that without a tool to handle the format for me, I am simply too lazy to sustain that format for more than a few days.<p>Also, there become situations where your commits contain new code for multiple features that are all related. Or, there are times when I am simply committing code before completing a feature just in case I want to roll something back.<p>In these cases, there often isn&#x27;t a good &quot;type&quot; that optimally covers the full scope of what is occurring.<p>It seems that many of the things we do as programmers are just superfluous ways of &quot;making things easier&quot; or &quot;more organized&quot; that ultimately just waste time and result in unfinished projects.
评论 #28674792 未加载
shizzy0超过 3 年前
I use this style. It’s been very helpful. It feels like a nice scannable breadcrumb compared to my old commit titles. I did have trouble sometimes remembering the categories. Was it “doc” or “docs”? So I changed my git template to show this and my own enshrined categories. One category I added was “excise” for the removal of things.<p><a href="https:&#x2F;&#x2F;gist.github.com&#x2F;shanecelis&#x2F;db3f348288be70e4de4e0f2493f4e3d1" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;shanecelis&#x2F;db3f348288be70e4de4e0f249...</a><p>Early on in, I used to write “refactor,doc,feature:” before I realized that one of the practices this is meant to encourage is a commit that does one of the things, not all of them. I’m not very strict about it. I always do the semantic title but if I have some documentation mingled with a refactor, oh well.
activitypea超过 3 年前
What&#x27;s the value of this? My work enforces this and it is such a drag, it&#x27;s incredible how negatively it impacts my productivity
评论 #28672604 未加载
评论 #28672352 未加载
patrickdevivo超过 3 年前
Assuming committers adhere to it, there could be some interesting use cases when combined with a tool like AskGit (<a href="https:&#x2F;&#x2F;github.com&#x2F;askgitdev&#x2F;askgit" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;askgitdev&#x2F;askgit</a>) for understanding what &quot;categories&quot; of work is being done in a codebase.<p>Maybe even what directories&#x2F;files tend to see `fix` or `refactor` more frequently (signs of a poorly design or &quot;hot&quot; area?)
difosfor超过 3 年前
Especially great when combined with <a href="https:&#x2F;&#x2F;github.com&#x2F;semantic-release&#x2F;semantic-release" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;semantic-release&#x2F;semantic-release</a><p>Also just ran across this, looks interesting: <a href="https:&#x2F;&#x2F;github.com&#x2F;zeke&#x2F;semantic-pull-requests" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zeke&#x2F;semantic-pull-requests</a>
eurasiantiger超过 3 年前
Don’t use ”style” when you mean ”formatting”, frontenders can confuse it with CSS styling tasks.<p>(Why are you formatting code by hand anyway? Automated tools exist for that.)
评论 #28672532 未加载
bnix超过 3 年前
This just makes commits about Project Management (tracking) and not about Development (reasoning).<p>Diffs say what you did. Commits should say why you did.
remram超过 3 年前
No one uses semantic email subjects, why this? What is the value added?<p>If this is an excuse to autogenerate your changelog, no thank you.
评论 #28675887 未加载