<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mariano Rozanski on Medium]]></title>
        <description><![CDATA[Stories by Mariano Rozanski on Medium]]></description>
        <link>https://medium.com/@mariano_rozanski?source=rss-3f6aadb115b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*e9et3JSNWglZzYxD</url>
            <title>Stories by Mariano Rozanski on Medium</title>
            <link>https://medium.com/@mariano_rozanski?source=rss-3f6aadb115b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 08:27:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mariano_rozanski/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How I like my commits]]></title>
            <link>https://medium.com/dotsur/how-i-like-my-commits-84d7eea081d7?source=rss-3f6aadb115b------2</link>
            <guid isPermaLink="false">https://medium.com/p/84d7eea081d7</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[software-best-practices]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Mariano Rozanski]]></dc:creator>
            <pubDate>Sun, 29 Mar 2020 23:03:35 GMT</pubDate>
            <atom:updated>2020-03-29T23:03:35.603Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Fried egg" src="https://cdn-images-1.medium.com/max/1024/1*06_iB_VKCcTUMprGn1mKEw.jpeg" /><figcaption>Follow two simple rules for a readable and consistent codebase history. The rest is personal preference. Like this fried egg.</figcaption></figure><p>I was just trying to find out if a certain feature made it to our app’s latest release.</p><p>Headed to Github, master branch, commits.</p><p>Reassuringly, sitting at the top was our latest merge commit from the <em>pre-production </em>branch<em>, </em>followed by a list of short commit titles.</p><p>— This is gonna be an easy task :-)</p><p>Right below, another PR merged, and then:</p><pre>145ce493 <em>Uncomment lastImportDate at the end of contacts loop</em></pre><p>That was not it, keep sweeping down.</p><pre>b1156846 <em>Analytics: track app upgrade event</em></pre><p>And then this:</p><pre>3075e1f4 <em>hope this time it works<br></em>8c213812 <em>Fix<br></em>8c624d9c <em>New notification maybe finished<br></em>eb98f77b <em>PR comments from Sandra<br></em>008f2279 <em>fix for weird stuff<br></em>98274dba <em>I forgot something</em></pre><p>😲</p><p>How can I possibly know what happened there without going into every single commit’s changes?</p><p>This is very common across development teams and, fortunately, very easy to avoid.</p><h4>All we need is love</h4><p>A good team is greater than the sum of its parts. That’s synergy.</p><p>Applied to software development teams, it means that to be part of Team Kick Ass, I don’t need to be an expert on Automated QA tools, <em>and </em>Analytics, <em>and</em> React, <em>and</em> CD/CI, <em>and</em> node, <em>and </em>SQL at the same time.</p><p>Or know how the next person sweeping through our code history likes their commits.</p><p>I basically need to kick ass at my own area of expertise, and follow <strong>an agreed upon process</strong>.</p><p>So, instead of start cursing out loud and making a contribution to put my health in risk at any level, I took three deep breaths and started writing what you’re now reading.</p><h4>Conventions</h4><p>I’ve been working with code for 20 years, pretty much the same time version Control Systems have been around, but I started years before they became popular.</p><p>Before that, we used to gzip our entire project folder a few times every day, timestamp, and send them to our buddy’s hard drive (via a network cable) as a backup. And hope we never needed to use those!</p><p>It’s 2020, Git is here, and each team needs to develop their own conventions and agree on their own standards and best practices. However, when it comes to commit messages, I find these two rules to be fundamental:</p><h4>Rule #1 Make sure it’s useful</h4><pre>&quot;oopsie!&quot;</pre><p>👎 Not useful.</p><pre>&quot;Typo&quot;</pre><p>🐼 Maybe.</p><pre>&quot;Typo in SignIn.js (build blocker)&quot;</pre><p>🙌 Useful!</p><p>When deciding if a comment is useful, <strong>think in the context of other commits.</strong></p><p>If your <em>Typo</em> message is right above another <em>Typo</em> for example, it will be useful only if at least one of them includes what differentiates the two. <strong>Always</strong> <strong>specify</strong>. Don’t be that guy.</p><h4>Rule #2 Explain what you’re doing, and if necessary, why</h4><p>Ideally, a good commit message has a very compact first line (50 characters max) summarizing the change, followed by a blank line, and a more detailed description, when needed.</p><p><strong>The title (first line) should indicate what was done.</strong><br><strong>The description, if present, should give more detail about what’s in the title, and explain why.</strong></p><p>A good example from <a href="https://github.com/DrKLO/Telegram">Telegram’s git repository</a>:</p><pre>## Edit korean SentSmsCode string:unnecessary br tag</pre><pre>Although the strings of other languages in SentSmsCode don’t<br>include ‘&lt;!CDATA..’, the Korean string does that.<br>Unfortunately, that string is not escaped by replaceTags().<br>So, the CDATA tag must be deleted.</pre><p>Once you start doing it, it’ll soon become habit.</p><p>Keep reading good stuff:</p><p><a href="https://git-scm.com/docs/git-commit#_discussion">https://git-scm.com/docs/git-commit#_discussion</a></p><p><a href="https://chris.beams.io/posts/git-commit">https://chris.beams.io/posts/git-commit</a></p><p><a href="https://blog.usejournal.com/make-your-git-history-great-again-da6a8ae799e0">https://blog.usejournal.com/make-your-git-history-great-again-da6a8ae799e0</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84d7eea081d7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dotsur/how-i-like-my-commits-84d7eea081d7">How I like my commits</a> was originally published in <a href="https://medium.com/dotsur">Dotsur</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>