From 6541679f7b9781e3fb0c4e5560cab4d10d21386b Mon Sep 17 00:00:00 2001 From: M81 <110393729+ZhangZhanhaoxiang@users.noreply.github.com> Date: Fri, 20 Jan 2023 21:05:01 +0800 Subject: [PATCH] translated --- ... 11 tips for writing a good Git commit message.md | 185 ------------------ ... 11 tips for writing a good Git commit message.md | 185 ++++++++++++++++++ 2 files changed, 185 insertions(+), 185 deletions(-) delete mode 100644 sources/tech/20221228.1 â­ï¸â­ï¸ 11 tips for writing a good Git commit message.md create mode 100644 translated/tech/20221228.1 â­ï¸â­ï¸ 11 tips for writing a good Git commit message.md diff --git a/sources/tech/20221228.1 â­ï¸â­ï¸ 11 tips for writing a good Git commit message.md b/sources/tech/20221228.1 â­ï¸â­ï¸ 11 tips for writing a good Git commit message.md deleted file mode 100644 index ae6acb59d1..0000000000 --- a/sources/tech/20221228.1 â­ï¸â­ï¸ 11 tips for writing a good Git commit message.md +++ /dev/null @@ -1,185 +0,0 @@ -[#]: subject: "11 tips for writing a good Git commit message" -[#]: via: "https://opensource.com/article/22/12/git-commit-message" -[#]: author: "AmyJune Hineline https://opensource.com/users/amyjune" -[#]: collector: "lkxed" -[#]: translator: " " -[#]: reviewer: " " -[#]: publisher: " " -[#]: url: " " - -11 tips for writing a good Git commit message -====== - -Lately, I have been paying closer attention to the changelogs I get from products and services when updates are needed. Here are some examples: - -- Fixed some bugs. -- Made some accessibility improvements. -- We've made improvements and fixed bugs for a smoother ride. - -When I think about some of the first commit messages I made as a junior developer I have to hang my head in dismay: - -- Pointed and clicked around a bit and now things seem to work. -- Did what programmer X told me to do and now the banner is blue. - -This can be frustrating! I asked our community of contributors the following questions: - -- What makes a good Git commit message? -- What makes a bad one? -- What rules do you think a project should have around what a commit message contains? - -Here are their answers: - -### Great writing is key - -As with anything you write, you should think about who is going to read it. Then adapt the amount and depth of information accordingly. - -Improving your natural language and writing skills is essential for a healthy career in software development. It's not just code that counts. - -**—[Camilla Conte][1]** - -### Be descriptive and don't assume - -I spend a lot of my time collaborating in the [OpenStack][2] community, and its code reviewers have some fairly exacting standards compared to what I see from other projects "in the wild." - -I'll often spend far longer composing a solid commit message than I do writing the actual code implementation or fix. Sometimes commit messages can end up many times longer than the diffs they're explaining. - -To summarize some of the contributor guidance: - -- Describe why a change is being made, not just what is changing -- The first commit line is the most important (like the subject line of an email) -- Don't assume reviewers understand the original problem you're fixing -- Don't assume the reviewer has access to external web services or the site (summarize defect reports and other relevant discussions) -- Don't assume the code is self-evident and self-documenting (though there is no need to repeat points you also make in your code comments) -- Don't include information only relevant to earlier revisions of the change (we expect contributors to squash revisions together and edit their commit messages accordingly). - -There's a brief section on the topic in the OpenStack Contributors Guide: [https://docs.openstack.org/contributors/common/git.html#commit-messages][3] - -**—[Jeremy Stanley][4]** - -### Your future self will thank you - -I cannot agree more with Jeremy. +1000 - -Jeremy said, "describe why a change is being made, not just what's changing." - -Imagine you're someone else, in a faraway future, trying to work out this commit. - -Put yourself in other people's shoes, as the old saying goes. - -**—[Leigh Morresi][5]** - -### Use the bug ID - -I recommend adding the bug ID at the start of the commit message so that it's easier to track the commits at a later stage using the [`grep` command][6]. - -For example: - -``` -$ git commit -m "BZ#19xxxxx -``` - -To come up with thoughtful commits, consider the following: - -- Why have I made these changes? -- What effect have my changes made? -- Why was the change needed? -- What are the changes in reference to? - -**—[Agil Antony][7]** - -### Tell the whole story - -I like to imagine there is a hidden prefix to every commit message that reads "By applying this." - -A good commit message includes exactly what will happen and why. It is insufficient to merely have the work ticket reference because that decentralizes the information; Git is decentralized. As a software developer, I want to know why the proposed changes are being considered. What specific problem is being addressed? What alternate solutions were considered (and discarded)? What unexpected things were discovered during the creation of the changeset that influenced the current content? - -There's no prize for shortest commit message. Your future self and future colleagues will appreciate you going into depth to explain the problem and why this changeset is the answer. Harness those cooking blogs where there's a five-paragraph life story. Here, however, make the problem the subject of the life story. - -**—[Lisa Seelye][8]** - -### But don't be overly verbose - -A good git commit message contains information about what was done, and nothing else. For instance, if you needed to update the .gitignore, just say "updated .gitignore." Folks can dive into the commit itself for more details. It doesn't need to be verbose. - -A bad commit message is something like, "oh crap" or "try this". Granted, I've been guilty of this, but it doesn't help anyone if they need to look at commits at a glance. - -Rules are very subjective. They can differ from lead to lead and team to team. But at the very least, give some contextual information about the commit. Especially if it's a large one. No one has time to skim through 1000+ files with a heavy change history. - -**—[Miriam Goldman][9]** - -### Use present tense - -I like project manager-styled commit messages written in present and not future terms (for example, "add" instead of "added"). However, it's usually only possible if commits are frequent. There's only so much "how did I do it" you can remember when you're faced with a deadline. Yet, well-written commits not only help collaborators, but are also helpful to the committer in recollecting history. - -**—[Chris Okpada][10]** - -### Don't rely on links - -One thing I like to remind colleagues of is that you're not just explaining to the people who are going to decide whether to approve your commit. You're also explaining to future developers and users who have found this commit in a bisect or blame operation and are trying to understand its relevance. - -If the only context supplied is a link to some external system, and that far in the future the system it links to is no longer in use or has otherwise become inaccessible to that individual, your commit message has been rendered useless and may just as well be blank. - -All too often, I go digging in the Git history of some open source project, and find commit messages which are nothing more than a bug ID or a link to some company's internal and private defect tracker. - -Don't be that project! - -**—[Jeremy Stanley][4]** - -### Clear and concise changelogs - -As a release communications manager, I often read the entire release board. I also met with developers to discuss any areas that weren't clear yet. Then I tested the release early. After that, I would write a release post by sourcing the changelogs and corresponding revised or new content. - -The changelogs are personal reminders for developers, but also have corresponding issues and tickets for them. You should capitalize product names appropriately, use a spell checker, be consistent with punctuation, and sentence structure. The lead developer should proofread these as well. Your customers, that are developers, are reading these. What information should they know before running the update to better serve their customers? - -**—[Courtney Robertson][11]** - -### Be specific - -As a frequent release manager, I like messages that name the component a commit touches, and a brief description of what was changed. Also having a reference back to where the request for this work came from helps to tie fixes together long after we forgot about your clever branch name. - -- "fix fatal error" is not ideal. -- "ISS-304: Fix fatal error in Login Access Control function for users - with the Partner role" is better. -- "ISS-304: Login Access Control: fix fatal error in getPartnerId()" is - better still. - -I can look at the entire relationship between a Git commit, branch, merge commit, and inspect the individual lines and files that were changed. But I don't have that kind of time in the middle of a release. I want to be able to relate back to the source of this work in the project management tool, have some idea of which components are being changed, and in what way. - -**—[Ryan Price][12]** - -### Make it a habit - -My favorite commit that I'm guilty of is, "commit before I switch branches" because I have to work on something else more urgent. Sometimes, I need to commit my current work to a totally different project. My manager's strategy is to have us work as we normally do. But then when we rebase, he wants us to squash commits where it makes sense and write better messages. I can't say we always do this, but his method does make sense. - -I have a lot of "this is broken don't know why" type messages too (haha) where I try things but want to commit that attempt before I try something else in case method A was closer to fixing the issue than method B. Writing code is a hot mess. And I've been writing it for over 10 years. - -**—[RachieVee][13]** - -What commit message advice or tips do you live by? Let us know in the comments. - --------------------------------------------------------------------------------- - -via: https://opensource.com/article/22/12/git-commit-message - -作者:[AmyJune Hineline][a] -选题:[lkxed][b] -译者:[译者ID](https://github.com/译者ID) -校对:[校对者ID](https://github.com/校对者ID) - -本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) è£èª‰æŽ¨å‡º - -[a]: https://opensource.com/users/amyjune -[b]: https://github.com/lkxed -[1]: https://opensource.com/users/spotlesstofu -[2]: https://opensource.com/resources/what-is-openstack -[3]: https://docs.openstack.org/contributors/common/git.html#commit-messages -[4]: https://opensource.com/users/fungi -[5]: https://opensource.com/users/dgtlmoon -[6]: https://opensource.com/downloads/grep-cheat-sheet -[7]: https://opensource.com/users/agantony -[8]: https://opensource.com/users/lisa -[9]: https://opensource.com/users/miriamgoldman -[10]: https://opensource.com/users/ojchris -[11]: https://opensource.com/users/courtneyrdev -[12]: https://opensource.com/users/liberatr -[13]: https://opensource.com/users/rachievee diff --git a/translated/tech/20221228.1 â­ï¸â­ï¸ 11 tips for writing a good Git commit message.md b/translated/tech/20221228.1 â­ï¸â­ï¸ 11 tips for writing a good Git commit message.md new file mode 100644 index 0000000000..f78aab08dc --- /dev/null +++ b/translated/tech/20221228.1 â­ï¸â­ï¸ 11 tips for writing a good Git commit message.md @@ -0,0 +1,185 @@ +[#]: subject: "11 tips for writing a good Git commit message" +[#]: via: "https://opensource.com/article/22/12/git-commit-message" +[#]: author: "AmyJune Hineline https://opensource.com/users/amyjune" +[#]: collector: "lkxed" +[#]: translator: "ZhangZhanhaoxiang" +[#]: reviewer: " " +[#]: publisher: " " +[#]: url: " " + +编写好 Git æ交消æ¯çš„ 11 个技巧 +====== + +最近,当需è¦æ›´æ–°æ—¶ï¼Œæˆ‘一直在密切关注从产å“å’ŒæœåŠ¡èŽ·å¾—çš„å˜æ›´æ—¥å¿—。以下是一些示例: + +- ä¿®å¤äº†ä¸€äº›é”™è¯¯ã€‚ +- 进行了一些å¯è®¿é—®æ€§æ”¹è¿›ã€‚ +- 我们已ç»è¿›è¡Œäº†æ”¹è¿›å¹¶ä¿®å¤äº†é”™è¯¯ï¼Œä»¥å®žçŽ°æ›´é¡ºç•…地è¿è¡Œã€‚ + +当我想到我作为一ååˆçº§å¼€å‘人员å‘出的一些最åˆçš„承诺信æ¯æ—¶ï¼Œæˆ‘ä¸å¾—ä¸æ²®ä¸§åœ°åž‚下头: + +- 用鼠标点了一下,现在一切似乎都正常了。 +- 执行了程åºå‘˜ X 告诉我的æ“作,现在横幅是è“色的。 + +è¿™å¯èƒ½ä»¤äººæ²®ä¸§ï¼æˆ‘å‘我们的贡献者群体æ出了以下问题: + +- 什么是好的 Git æ交消æ¯ï¼Ÿ +- 什么是åçš„ Git æ交消æ¯ï¼Ÿ +- 你认为一个项目应该有哪些关于æ交消æ¯æ‰€å†™å†…容的规则? + +以下是他们的答案: + +### 易阅读的文笔是关键 + +与你写任何东西一样,你应该考虑è°ä¼šé˜…读它。然åŽç›¸åº”地调整信æ¯çš„æ•°é‡å’Œæ·±åº¦ã€‚ + +æ高你的自然语言和写作技能对于软件开å‘的顺利èŒä¸šç”Ÿæ¶¯è‡³å…³é‡è¦ã€‚é‡è¦çš„ä¸ä»…仅是代ç ã€‚ + +**—[Camilla Conte][1]** + +### 具有æ述性,ä¸è¦å‡è®¾ + +我花了很多时间在 OpenStack[2] 社区中进行åˆä½œï¼Œä¸Žæˆ‘在åƒâ€œé‡Žå¤–â€ä¸€æ ·éšæ„的其他项目中看到的相比,它的代ç å®¡æŸ¥å‘˜æœ‰ä¸€äº›ç›¸å½“严格的标准。 + +我撰写一æ¡å¯é çš„æ交消æ¯çš„时间通常è¦æ¯”编写实际的代ç å®žçŽ°æˆ–ä¿®å¤ç¨‹åºçš„时间长得多。有时,æ交消æ¯æ‰€éœ€çš„时间å¯èƒ½ä¼šæ¯”它们解释的差异长很多å€ã€‚ + +总结一些贡献者指导: + +- æ述为什么è¦åšå‡ºæ”¹å˜ï¼Œè€Œä¸ä»…仅是改å˜äº†ä»€ä¹ˆ +- 第一个æ交行是最é‡è¦çš„(就åƒç”µå­é‚®ä»¶çš„主题行) +- ä¸è¦è‡ªè®¤ä¸ºå®¡æŸ¥äººå‘˜äº†è§£ä½ æ­£åœ¨ä¿®å¤çš„原始问题 +- ä¸è¦è‡ªè®¤ä¸ºå®¡æŸ¥è€…å¯ä»¥è®¿é—®å¤–部 web æœåŠ¡æˆ–网站(总结缺陷报告和其他相关讨论) +- ä¸è¦å‡è®¾ä»£ç æ˜¯ä¸è¨€è‡ªæ˜Žçš„和自我记录的(尽管没有必è¦é‡å¤æ‚¨åœ¨ä»£ç æ³¨é‡Šä¸­ä¹Ÿæ出的观点) +- ä¸è¦åªåŒ…å«ä¸Žæ›´æ”¹çš„早期修订相关的信æ¯ï¼ˆæˆ‘们希望贡献者将修订压缩在一起,并相应地编辑其æ交消æ¯ï¼‰ã€‚ + +《OpenStack 贡献者指å—》中有一个关于该主题的简短章节:[https://docs.openstack.org/contributors/common/git.html#commit-messages][3] + +**—[Jeremy Stanley][4]** + +### 你未æ¥çš„自己会感谢你 + +我éžå¸¸åŒæ„æ°é‡Œç±³çš„观点。1000 份地支æŒã€‚ + +Jeremy 说:“æ述为什么è¦åšå‡ºæ”¹å˜ï¼Œè€Œä¸ä»…仅是改å˜äº†ä»€ä¹ˆã€‚†+ +想象一下,你是æ—观者,在é¥è¿œçš„未æ¥ï¼Œè¯•å›¾ç†è§£è¿™ä¸ªæ交。 + +正如è€è¯æ‰€è¯´ï¼Œè®¾èº«å¤„地为他人ç€æƒ³ã€‚ + +**—[Leigh Morresi][5]** + +### 使用 bug çš„ ID + +我建议在æ交消æ¯çš„开头添加 bug ID,以便ç¨åŽä½¿ç”¨ [`grep` 命令][6] 更容易跟踪æ交。 + +例如: + +``` +$ git commit -m "BZ#19xxxxx +``` + +è¦å†™å‡ºæ·±æ€ç†Ÿè™‘çš„æ交,请考虑以下事项: + +- 我为什么è¦åšè¿™äº›æ›´æ”¹ï¼Ÿ +- 我的更改产生了什么影å“? +- 为什么有更改的必è¦ï¼Ÿ +- 更改的ä¾æ®æ˜¯ä»€ä¹ˆï¼Ÿ + +**—[Agil Antony][7]** + +### 讲述整个故事 + +我喜欢想象æ¯ä¸ªæ交消æ¯éƒ½æœ‰ä¸€ä¸ªéšè—çš„å‰ç¼€ï¼Œä¸Šé¢å†™ç€â€œBy applying this(通过应用这个)â€ã€‚ + +一个好的æ交消æ¯åŒ…括将è¦å‘生的事情以åŠåŽŸå› ã€‚仅仅有工作任务清å•ä½œå‚考是ä¸å¤Ÿçš„,因为这分散了信æ¯ï¼›Git 是去中心化的。作为一å软件开å‘人员,我想知é“为什么当å‰è¦è€ƒè™‘åšå‡ºæ›´æ”¹ã€‚正在解决的具体问题是什么?考虑(并放弃)了哪些替代解决方案?在创建å˜æ›´é›†çš„过程中å‘现了哪些影å“当å‰å†…容的æ„外情况? + +缩短æ交消æ¯æ²¡æœ‰ä»€ä¹ˆç”¨ã€‚你未æ¥çš„自己和未æ¥çš„åŒäº‹ä¼šæ„Ÿæ¿€ä½ æ·±å…¥è§£é‡Šé—®é¢˜ï¼Œä»¥åŠä¸ºä»€ä¹ˆè¿™ä¸ªå˜æ›´é›†æ˜¯è§£å†³æ–¹æ¡ˆã€‚认真学习和利用那些有丰富“生活ç»éªŒâ€çš„“烹饪â€åšå®¢ã€‚然而,在此,仅仅是把生活ç»éªŒæ›¿æ¢æˆäº†é¡¹ç›®çš„问题罢了(LCTT 译注:æ„æ€æ˜¯è¦è®¤çœŸå­¦ä¹ å’Œæ¨¡ä»¿ä¼˜ç§€ã€è¯¦ç»†çš„ commit)。 + +**—[Lisa Seelye][8]** + +### 但ä¸è¦è¿‡äºŽå†—é•¿ + +一个好的 git æ交消æ¯åŒ…å«æœ‰å…³æ‰€åšæ“作的信æ¯ï¼Œè€Œä¸è¦åŒ…å«å…¶ä»–ä¿¡æ¯ã€‚例如,如果您需è¦æ›´æ–°.gitignore,åªéœ€å†™â€œupdated .gitignoreâ€å³å¯ã€‚人们å¯ä»¥è‡ªè¡Œæ·±å…¥åˆ°æ交本身中了解更多细节。它ä¸éœ€è¦å†—长。 + +令人åæ„Ÿçš„æ交消æ¯ç±»ä¼¼äºŽâ€œå“¦ï¼ŒåºŸè¯â€æˆ–“试试这个â€ã€‚当然,我对此感到内疚,但这对于任何需è¦çœ‹ä¸€çœ¼æ交的人æ¥è¯´éƒ½æ²¡æœ‰ä»»ä½•å¸®åŠ©ã€‚ + +æ交信æ¯çš„规则éžå¸¸ä¸»è§‚。他们å¯èƒ½å› é¢†å¯¼å’Œå›¢é˜Ÿè€Œå¼‚。但至少è¦æ供一些有关æ交的上下文信æ¯ã€‚特别是如果它是一个大的更改。没有人有时间æµè§ˆ 1000 多个具有é‡å¤§æ›´æ”¹åŽ†å²çš„文件。 + +**—[Miriam Goldman][9]** + +### 使用现在时 + +我喜欢用现在时而ä¸æ˜¯å°†æ¥æ—¶çš„术语编写项目ç»ç†é£Žæ ¼çš„æ交消æ¯ï¼ˆä¾‹å¦‚,“addâ€è€Œä¸æ˜¯â€œaddedâ€ï¼‰ã€‚然而,这通常åªæœ‰åœ¨é¢‘ç¹æ交时æ‰æœ‰å¯èƒ½ã€‚当你é¢ä¸´æœ€åŽæœŸé™æ—¶ï¼Œä½ èƒ½è®°ä½çš„åªæœ‰â€œæˆ‘是如何åšçš„â€è€Œå·²ã€‚然而,写得好的æ交ä¸ä»…有助于åˆä½œè€…,而且有助于æ交者回忆历å²ã€‚ + +**—[Chris Okpada][10]** + +### ä¸è¦ä¾èµ–链接 + +我想æ醒åŒäº‹çš„一件事是,你ä¸ä»…仅是å‘给你的æ交作批准的人解释。你还将å‘未æ¥çš„å¼€å‘人员和用户解释,他们会å‘现这æ交有利有弊,或者指责æ“作,并试图了解其相关性。 + +如果æ供的唯一的上下文是指å‘æŸä¸ªå¤–部系统的链接,并且在未æ¥å¾ˆé•¿ä¸€æ®µæ—¶é—´å†…,它所链接的系统ä¸å†ä½¿ç”¨ï¼Œæˆ–者该用户无法访问,那么您的æ交消æ¯å°†å˜å¾—无用,也相当于是空白的。 + +我ç»å¸¸åŽ»æŒ–掘一些开æºé¡¹ç›®çš„ Git 历å²ï¼Œå‘现有些æ交消æ¯æ— éžå°±æ˜¯ä¸€ä¸ª bug ID,或者是æŸä¸ªå…¬å¸å†…部的和专用缺陷跟踪器的链接。 + +ä¸è¦ä¾èµ–é“¾æŽ¥ï¼ + +**—[Jeremy Stanley][4]** + +### 清晰简æ´çš„å˜æ›´æ—¥å¿— + +作为一åå‘行沟通ç»ç†ï¼Œæˆ‘ç»å¸¸é˜…读整个å‘行版。我还与开å‘人员会é¢ï¼Œè®¨è®ºä»»ä½•å°šæœªæ˜Žç¡®çš„领域。然åŽæˆ‘很早就测试了这个版本。之åŽï¼Œæˆ‘将通过寻找å˜æ›´æ—¥å¿—和相应的修订或新内容æ¥æ’°å†™å‘布帖å­ã€‚ + +å˜æ›´æ—¥å¿—是开å‘人员的个人æ醒,但也有相应的æ议和问题。您应该适当地将产å“å称大写,使用拼写检查器,与标点符å·å’Œå¥å­ç»“æž„ä¿æŒä¸€è‡´ã€‚首席开å‘人员也应该校对这些。您的客户,å³å¼€å‘人员,正在阅读这些内容。在è¿è¡Œæ›´æ–°ä¹‹å‰ï¼Œä»–们应该了解哪些信æ¯èƒ½æ›´å¥½åœ°ä¸ºå®¢æˆ·æœåŠ¡ï¼Ÿ + +**—[Courtney Robertson][11]** + +### 具体一点 + +作为一个频ç¹å‘布的管ç†è€…,我喜欢将组件命å为æ交的消æ¯ï¼Œä»¥åŠå¯¹æ›´æ”¹å†…容的简è¦æ述。在我们忘记了你èªæ˜Žçš„分支å称之åŽï¼Œè¿˜å¯ä»¥å‚考一下这项工作的请求æ¥è‡ªä½•å¤„,这有助于将修å¤ç¨‹åºè”系在一起。 + +- “fix fatal errorâ€å¹¶ä¸æ˜¯ç†æƒ³çš„æ交。 + +- “ISS-304: Fix fatal error in Login Access Control function for users with the Partner roleâ€æ›´å¥½ã€‚ + +- “ISS-304: Login Access Control: fix fatal error in getPartnerId()â€ä¹Ÿæ˜¯æ›´å¥½ã€‚ + +我å¯ä»¥æŸ¥çœ‹ Git æ交ã€åˆ†æ”¯ã€åˆå¹¶æ交之间的整个关系,并检查更改的å„个行和文件。但我在å‘布过程中没有这样的时间。我希望能够回到项目管ç†å·¥å…·ä¸­è¿™é¡¹å·¥ä½œçš„æ¥æºï¼Œäº†è§£å“ªäº›ç»„件正在被更改,以åŠä»¥ä½•ç§æ–¹å¼è¿›è¡Œæ›´æ”¹ã€‚ + +**—[Ryan Price][12]** + +### 让它æˆä¸ºä¸€ç§ä¹ æƒ¯ + +我最喜欢犯的错误是“在我切æ¢åˆ†æ”¯ä¹‹å‰æ交â€ï¼Œå› ä¸ºæˆ‘必须处ç†å…¶ä»–更紧急的事情。有时候,我需è¦æŠŠæˆ‘ç›®å‰çš„工作æ交给一个完全ä¸åŒçš„项目。我的ç»ç†çš„策略是让我们åƒå¹³æ—¶ä¸€æ ·å·¥ä½œã€‚但当我们é‡æ–°å¯åŠ¨æ—¶ï¼Œä»–希望我们在有æ„义的地方压缩æ交,并编写更好的消æ¯ã€‚我ä¸èƒ½è¯´æˆ‘们总是这样åšï¼Œä½†ä»–的方法确实有é“ç†ã€‚ + +我也有很多“这是å的,ä¸çŸ¥é“为什么â€ç±»åž‹çš„消æ¯ï¼ˆå“ˆå“ˆï¼‰ï¼Œæˆ‘å°è¯•äº†ä¸€äº›ä¸œè¥¿ï¼Œä½†æƒ³åœ¨å°è¯•å…¶ä»–东西之å‰æ交该å°è¯•ï¼Œä»¥é˜²æ–¹æ³• A 比方法 B 更接近解决问题。我已ç»å†™äº† 10 多年了。 + +**—[RachieVee][13]** + +你生活中的æ交信æ¯å»ºè®®æˆ–æ示是什么?让我们在评论中知é“。 + +-------------------------------------------------------------------------------- + +via: https://opensource.com/article/22/12/git-commit-message + +作者:[AmyJune Hineline][a] +选题:[lkxed][b] +译者:[ZhangZhanhaoxiang](https://github.com/ZhangZhanhaoxiang) +校对:[校对者ID](https://github.com/校对者ID) + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) è£èª‰æŽ¨å‡º + +[a]: https://opensource.com/users/amyjune +[b]: https://github.com/lkxed +[1]: https://opensource.com/users/spotlesstofu +[2]: https://opensource.com/resources/what-is-openstack +[3]: https://docs.openstack.org/contributors/common/git.html#commit-messages +[4]: https://opensource.com/users/fungi +[5]: https://opensource.com/users/dgtlmoon +[6]: https://opensource.com/downloads/grep-cheat-sheet +[7]: https://opensource.com/users/agantony +[8]: https://opensource.com/users/lisa +[9]: https://opensource.com/users/miriamgoldman +[10]: https://opensource.com/users/ojchris +[11]: https://opensource.com/users/courtneyrdev +[12]: https://opensource.com/users/liberatr +[13]: https://opensource.com/users/rachievee