question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Learn to write good commit message and description

See original GitHub issue

It’s a follow-up for:

@decentral1se @ssbarnea I’ve got a collection of articles about writing meaningful commit messages. I’ll post it as a separate issue so that anyone could go through this and we could be on the same page… Sounds fair?

_Originally posted by @webknjaz in https://github.com/ansible/molecule/pull/1883#issuecomment-477972258_


According to common commit style guides, it is required to write messages in an imperative manner. Make them actionable and atomic. Also avoid using -m as you often need to express more detail in a long way. Here’s several articles sharing best practices:

N.B. This all applies to issues and PRs as well. If you submit a patch, everything in diff should refer to only one logical change making it atomic. Ideally, applying a single PR should transition a project from one working state to another completely working state, meaning there shouldn’t be a change submitted via two PRs and there shouldn’t be anything more than needed to fulfill what’s in description and title of the PR.

P.S. Don’t scare (other) maintainers with huge changes. Reviewing a PR is hard work. The bigger it is the more chance is that somebody will postpone it until better times (trying to find an appropriate slot in their calendars to the review in one pass). Smaller changes attract more viewers and people, in general, are more likely to understand tiny patches and their impact.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
webknjazcommented, Mar 30, 2019

There’s also a number of things I encourage people to learn about Git. Maybe you will find something for yourselves.

Extras:

1reaction
decentral1secommented, Mar 30, 2019

A serious resource! I wonder should you have a canonical URL on http://webknjaz.me/ 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Write Better Git Commit Messages – A Step-By-Step ...
5 Steps to Write Better Commit Messages · Capitalization and Punctuation: Capitalize the first word and do not end in punctuation. · Mood:...
Read more >
How to Write a Git Commit Message - cbea.ms
The seven rules of a great Git commit message · Separate subject from body with a blank line · Limit the subject line...
Read more >
How to Write a Good Git Commit Message | Git Best Practices
Writing a Good Git Commit Message ; Make changes; Stage changes; Commit changes ; Avoid unnecessary capitalization; Double check your spelling; Don't end...
Read more >
Writing Meaningful Commit Messages - Reflectoring
What Is a Good Commit Message? ; It should be understandable even by seeing only the header of the message (we'll talk about...
Read more >
How Writing Commit Messages Helps You be a Better ...
A good commit message should be two things: meaningful and concise. It should not contain every single detail, describing each changed line—we ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found