<?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: Dhruv Mevada</title>
    <description>The latest articles on DEV Community by Dhruv Mevada (@dhruv_mevada_dev).</description>
    <link>https://dev.to/dhruv_mevada_dev</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4028979%2F10a4e8cf-31af-416b-ba86-1ddf91524e0e.png</url>
      <title>DEV Community: Dhruv Mevada</title>
      <link>https://dev.to/dhruv_mevada_dev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dhruv_mevada_dev"/>
    <language>en</language>
    <item>
      <title>Git Wasn't the Hard Part. Explaining It Was.</title>
      <dc:creator>Dhruv Mevada</dc:creator>
      <pubDate>Thu, 16 Jul 2026 07:03:48 +0000</pubDate>
      <link>https://dev.to/dhruv_mevada_dev/git-wasnt-the-hard-part-explaining-it-was-4lec</link>
      <guid>https://dev.to/dhruv_mevada_dev/git-wasnt-the-hard-part-explaining-it-was-4lec</guid>
      <description>&lt;h2&gt;
  
  
  Git Wasn't the Hard Part. Explaining It Was.
&lt;/h2&gt;

&lt;p&gt;I thought teaching Git to my friend would take about &lt;strong&gt;30 minutes&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;You know... install Git, create a repository, make a commit, push it to GitHub, and we're done.&lt;/p&gt;

&lt;p&gt;Three hours later, we were debating whether the &lt;code&gt;.git&lt;/code&gt; folder was a database, a hidden backup, or some kind of developer black magic.&lt;/p&gt;

&lt;p&gt;That's when I realized something.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Git isn't hard because of the commands. It's hard because of the way it makes you think.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  "If GitHub stores everything, why do I need Git?"
&lt;/h2&gt;

&lt;p&gt;That was the very first question.&lt;/p&gt;

&lt;p&gt;Honestly... it's a fair question.&lt;/p&gt;

&lt;p&gt;When you've never used version control before, Git and GitHub sound like they're the same thing.&lt;/p&gt;

&lt;p&gt;So instead of giving the textbook explanation, I used an analogy.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Your project folder is your notebook.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Git is the history of everything you write in that notebook.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub is Google Drive where you upload that notebook so others can access it.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The expression on my friend's face immediately changed.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;"Okay... that actually makes sense."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;That was the first small victory.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Magic of &lt;code&gt;git init&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;We opened a terminal and typed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My friend looked at me and asked,&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Did anything even happen?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I smiled.&lt;/p&gt;

&lt;p&gt;"Yes."&lt;/p&gt;

&lt;p&gt;"But... nothing changed."&lt;/p&gt;

&lt;p&gt;"Exactly."&lt;/p&gt;

&lt;p&gt;One hidden folder appeared.&lt;/p&gt;

&lt;p&gt;That's all.&lt;/p&gt;

&lt;p&gt;Yet that tiny hidden &lt;code&gt;.git&lt;/code&gt; folder is what transforms an ordinary project into a Git repository.&lt;/p&gt;

&lt;p&gt;It's funny how one invisible folder powers the workflow of millions of developers.&lt;/p&gt;




&lt;h2&gt;
  
  
  The First Commit
&lt;/h2&gt;

&lt;p&gt;We created a simple README file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git add &lt;span class="nb"&gt;.&lt;/span&gt;
git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"Initial commit"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Another question arrived.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"So... is it online now?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;"No."&lt;/p&gt;

&lt;p&gt;"Then where is it?"&lt;/p&gt;

&lt;p&gt;"It's safely stored on your own computer."&lt;/p&gt;

&lt;p&gt;That was another lightbulb moment.&lt;/p&gt;

&lt;p&gt;A lot of beginners assume every Git command uploads their code somewhere.&lt;/p&gt;

&lt;p&gt;Understanding that &lt;strong&gt;Git works locally first&lt;/strong&gt; makes everything else much easier.&lt;/p&gt;




&lt;h2&gt;
  
  
  Connecting to GitHub
&lt;/h2&gt;

&lt;p&gt;We created a repository on GitHub.&lt;/p&gt;

&lt;p&gt;Then came the commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git remote add origin &amp;lt;repository-url&amp;gt;
git branch &lt;span class="nt"&gt;-M&lt;/span&gt; main
git push &lt;span class="nt"&gt;-u&lt;/span&gt; origin main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A few seconds later, we refreshed GitHub.&lt;/p&gt;

&lt;p&gt;The repository appeared.&lt;/p&gt;

&lt;p&gt;My friend literally smiled and said,&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Wait... that's my code?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Yes.&lt;/p&gt;

&lt;p&gt;For experienced developers, pushing code to GitHub feels routine.&lt;/p&gt;

&lt;p&gt;For someone doing it for the first time, it feels like launching a rocket.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Questions That Made Me Think
&lt;/h2&gt;

&lt;p&gt;Some of my favorite questions from that session were:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Why do we need Git if we already save files?"&lt;/li&gt;
&lt;li&gt;"What's inside the &lt;code&gt;.git&lt;/code&gt; folder?"&lt;/li&gt;
&lt;li&gt;"Why isn't my commit visible on GitHub?"&lt;/li&gt;
&lt;li&gt;"Why do we need both Git and GitHub?"&lt;/li&gt;
&lt;li&gt;"Why do people use branches instead of just making another folder?"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;They were simple questions.&lt;/p&gt;

&lt;p&gt;But answering them forced me to rethink concepts I'd been using automatically for months.&lt;/p&gt;




&lt;h2&gt;
  
  
  Teaching Made Me a Better Developer
&lt;/h2&gt;

&lt;p&gt;People often say,&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"The best way to learn something is to teach it."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I didn't fully believe that until this session.&lt;/p&gt;

&lt;p&gt;When you're using Git every day, commands become muscle memory.&lt;/p&gt;

&lt;p&gt;You stop thinking about &lt;em&gt;why&lt;/em&gt; they exist.&lt;/p&gt;

&lt;p&gt;Teaching someone else made me slow down and understand the reasoning behind every step.&lt;/p&gt;

&lt;p&gt;It reminded me that beginners aren't confused because Git is impossible.&lt;/p&gt;

&lt;p&gt;They're confused because they're learning an entirely new way of thinking about code.&lt;/p&gt;




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

&lt;p&gt;By the end of the session, my friend had:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Installed Git&lt;/li&gt;
&lt;li&gt;Created a local repository&lt;/li&gt;
&lt;li&gt;Made the first commit&lt;/li&gt;
&lt;li&gt;Connected the project to GitHub&lt;/li&gt;
&lt;li&gt;Pushed code successfully&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;More importantly, they understood &lt;strong&gt;why&lt;/strong&gt; each step existed.&lt;/p&gt;

&lt;p&gt;And I walked away with something too.&lt;/p&gt;

&lt;p&gt;Not better Git commands.&lt;/p&gt;

&lt;p&gt;A better understanding of Git itself.&lt;/p&gt;

&lt;p&gt;Sometimes the biggest lessons don't come from building software.&lt;/p&gt;

&lt;p&gt;They come from helping someone else build their confidence.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Have you ever taught Git to someone?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What was the funniest question they asked? or, if you're just starting out, what confused you the most?&lt;/p&gt;

&lt;p&gt;I'd love to hear your stories in the comments. &lt;/p&gt;

</description>
      <category>programming</category>
      <category>webdev</category>
      <category>tutorial</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
