<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Thushar P</title>
    <description>The latest articles on DEV Community by Thushar P (@thushar-p).</description>
    <link>https://dev.to/thushar-p</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3120364%2F3a7cbfae-006e-4089-b4f8-233d9efd2771.png</url>
      <title>DEV Community: Thushar P</title>
      <link>https://dev.to/thushar-p</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/thushar-p"/>
    <language>en</language>
    <item>
      <title>Git Commit Messages that Makes Sense !</title>
      <dc:creator>Thushar P</dc:creator>
      <pubDate>Fri, 07 Nov 2025 09:29:33 +0000</pubDate>
      <link>https://dev.to/thushar-p/git-commit-messages-that-makes-sense--4kff</link>
      <guid>https://dev.to/thushar-p/git-commit-messages-that-makes-sense--4kff</guid>
      <description>&lt;p&gt;Ever opened a Git log and seen messages like &lt;code&gt;add&lt;/code&gt;, &lt;code&gt;update&lt;/code&gt;, &lt;code&gt;logs&lt;/code&gt;, or the infamous &lt;code&gt;final final version&lt;/code&gt;?&lt;br&gt;
Yeah, we’ve all been there—and it’s painful. Let’s fix that right now.&lt;/p&gt;


&lt;h2&gt;
  
  
  &lt;strong&gt;Why Bad Commit Messages are Bad&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Bad commit messages are a nightmare when you’re debugging, reviewing history, or collaborating with a team.&lt;br&gt;
Here are some common (and useless) examples:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"added logs"&lt;/span&gt;
git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"implemented user login"&lt;/span&gt;
git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"removed unwanted codes"&lt;/span&gt;
git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"structured user service"&lt;/span&gt;
git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"optimized code"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now imagine looking at this log a week later. Do you know what changed? You probably have to dig into the code to find out.&lt;br&gt;
Poor commit messages slow down debugging, reduce team productivity, and ruin your future self's day.&lt;/p&gt;


&lt;h2&gt;
  
  
  &lt;strong&gt;Why Good Commit Messages Matter&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Writing clear, structured commit messages makes life easier for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Debugging&lt;/strong&gt;: You’ll know &lt;em&gt;what&lt;/em&gt; changed and &lt;em&gt;why&lt;/em&gt; without reading the diff.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Team collaboration&lt;/strong&gt;: Others can quickly understand your changes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Project history&lt;/strong&gt;: You build a clean, searchable change log.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Good commits are like documentation at the commit level. They help you build trust in your codebase and in the people working on it.&lt;/p&gt;


&lt;h2&gt;
  
  
  &lt;strong&gt;Anatomy of a Good Commit Message&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;A well-written commit message has two parts:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"type(TICKET-ID or feature): short description
Optional longer description explaining what the commit does and why."&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"feat(TICKET-4315): implement employee login function
Added login feature using AWS Cognito pools with validation and error handling."&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Imagine trying to understand this six months from now. Clear, right?&lt;br&gt;
A good commit message tells a story—what changed, why it changed, and any context that might help the next person (or future you).&lt;/p&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;Common Git Commit Types&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Use these prefixes for consistent messaging across the team:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;feat&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A new feature (e.g. &lt;code&gt;feat(TICKET-3212): add password reset&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;fix&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A bug fix (e.g. &lt;code&gt;fix(TICKET-3213): resolve login crash&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;update&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Update to an existing feature&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;docs&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Documentation-only changes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;refactor&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Code refactoring without changing behavior&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;test&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Adding or updating tests&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These types aren’t just about structure—they reflect intent. And intent matters when you’re reading a commit history like a storybook.&lt;/p&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;Final Thoughts&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Git commit messages aren’t just for Git, they’re for humans.&lt;br&gt;
Write them like you're leaving a note for your team… or your future self.&lt;br&gt;
Keep them short, specific, and meaningful. It’s one of those small habits that quietly make you a better developer.&lt;br&gt;
A clean commit history reflects a clean mindset.&lt;/p&gt;

</description>
      <category>git</category>
      <category>commit</category>
      <category>github</category>
      <category>softwaredevelopment</category>
    </item>
  </channel>
</rss>
