<?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"><channel><title><![CDATA[The Learning Yogi Journal]]></title><description><![CDATA[The Learning Yogi Journal is my space to explore tech, share learnings, and capture ideas. A place for growth, experiments, and reflections—one insight, one pag]]></description><link>https://thelearningyogi.com</link><image><url>https://cdn.hashnode.com/res/hashnode/image/upload/v1750140432069/11752c8d-72ac-4da3-8878-e64f852f9f7b.png</url><title>The Learning Yogi Journal</title><link>https://thelearningyogi.com</link></image><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 10:55:26 GMT</lastBuildDate><atom:link href="https://thelearningyogi.com/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Pendrive problem 💾]]></title><description><![CDATA[jjjjj]]></description><link>https://thelearningyogi.com/pendrive-problem</link><guid isPermaLink="true">https://thelearningyogi.com/pendrive-problem</guid><dc:creator><![CDATA[Sunny Patel]]></dc:creator><pubDate>Sat, 17 Jan 2026 14:48:55 GMT</pubDate><content:encoded><![CDATA[<p>jjjjj</p>
]]></content:encoded></item><item><title><![CDATA[Git Explained: The .git Folder Demystified 🔍]]></title><description><![CDATA[hhhhh]]></description><link>https://thelearningyogi.com/demystified-git-internals</link><guid isPermaLink="true">https://thelearningyogi.com/demystified-git-internals</guid><category><![CDATA[demystified-git]]></category><category><![CDATA[ChaiCode]]></category><category><![CDATA[#ChaiaurCode #HiteshChoudhary #PiyushGarg #GenAICohort #GenAI #LLM #PersonaPrompting #GeminiAI #ReactJS #NextJS #Python #AIChatbot #Hashnode #PromptEngineering #Vercel #HindiEnglishBlog #DevJourney]]></category><category><![CDATA[Chaiaurcode]]></category><dc:creator><![CDATA[Sunny Patel]]></dc:creator><pubDate>Sat, 17 Jan 2026 14:46:06 GMT</pubDate><content:encoded><![CDATA[<p>hhhhh</p>
]]></content:encoded></item><item><title><![CDATA[Git for Beginners: A Real‑Life Friendly Explanation 🌱]]></title><description><![CDATA[1. What is Git?
Imagine you’re writing story in a notebook or in an online google doc.

Every day, you improve it.

Sometimes you want to go back to an older version.

Sometimes two people want to write at the same time.


Git is a tool that helps yo...]]></description><link>https://thelearningyogi.com/learn-git-real-life-guide</link><guid isPermaLink="true">https://thelearningyogi.com/learn-git-real-life-guide</guid><category><![CDATA[Git]]></category><category><![CDATA[Git for Beginners]]></category><category><![CDATA[Git Commands]]></category><category><![CDATA[gitforbeginners]]></category><category><![CDATA[Gitcommands]]></category><category><![CDATA[ChaiCode]]></category><category><![CDATA[Chaiaurcode]]></category><category><![CDATA[ChaiCohort]]></category><category><![CDATA[chai-code ]]></category><dc:creator><![CDATA[Sunny Patel]]></dc:creator><pubDate>Tue, 13 Jan 2026 13:00:00 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1768630950148/f4efd139-aea6-488a-8919-7a4bcd13d9c9.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2 id="heading-1-what-is-git">1. What is Git?</h2>
<p>Imagine you’re writing story in a notebook or in an online google doc.</p>
<ul>
<li><p>Every day, you improve it.</p>
</li>
<li><p>Sometimes you want to go back to an older version.</p>
</li>
<li><p>Sometimes two people want to write at the same time.</p>
</li>
</ul>
<p><strong>Git</strong> is a tool that helps you do exactly this — but with <strong>code and files</strong>.</p>
<h3 id="heading-in-simple-words">In Simple Words:</h3>
<p><strong>Git is a distributed version control system that helps you track changes, save versions, and collaborate safely.</strong></p>
<ul>
<li><p><strong>Version control</strong> → Keeps history of changes</p>
</li>
<li><p><strong>Distributed</strong> → Everyone has their own full copy</p>
</li>
<li><p><strong>System</strong> → A tool that manages all of this</p>
</li>
</ul>
<p>So even if the internet is down, or a server crashes, your code history is still safe.</p>
<h2 id="heading-2-why-is-git-used">2. Why is Git Used?</h2>
<p>Before Git, developers used pendrives, email attachments, or file names like:</p>
<pre><code class="lang-plaintext">project_final_v1
project_final_v2
project_final_real_final
</code></pre>
<p>This caused confusion, lost work, and conflicts.</p>
<h3 id="heading-git-solves-these-problems">Git solves these problems:</h3>
<p>✅ Keeps complete history of your work<br />✅ Lets you experiment without fear<br />✅ Makes teamwork easy<br />✅ Helps you find <strong>who changed what and when</strong><br />✅ Allows rollback to a working version</p>
<p>Git is used by:</p>
<ul>
<li><p>Solo developers</p>
</li>
<li><p>Startups</p>
</li>
<li><p>Big companies like Google, Netflix, and Microsoft</p>
</li>
</ul>
<h2 id="heading-3-git-basics-and-core-terminologies">3. Git Basics and Core Terminologies</h2>
<p>Let’s understand Git concepts using simple language.</p>
<h3 id="heading-31-repository-repo">3.1 Repository (Repo)</h3>
<p>A <strong>repository</strong> is like a project folder that Git is watching.</p>
<p>It contains:</p>
<ul>
<li><p>Your files</p>
</li>
<li><p>Your full change history</p>
</li>
<li><p>Branches and commits</p>
</li>
</ul>
<p>There are two types:</p>
<ul>
<li><p><strong>Local repository</strong> → On your computer</p>
</li>
<li><p><strong>Remote repository</strong> → On GitHub/GitLab/Bitbucket</p>
</li>
</ul>
<h3 id="heading-32-commit">3.2 Commit</h3>
<p>A <strong>commit</strong> is a snapshot of your project at a point in time.</p>
<p>Think of it as:</p>
<blockquote>
<p>“Save game” in a video game 🎮</p>
</blockquote>
<p>Each commit has:</p>
<ul>
<li><p>A unique ID (hash)</p>
</li>
<li><p>Author</p>
</li>
<li><p>Time</p>
</li>
<li><p>Message explaining the change (A message should be meaningful and should revolve around the task you were working on )</p>
</li>
</ul>
<p>Example:</p>
<pre><code class="lang-plaintext">"Add login validation"
</code></pre>
<h3 id="heading-33-branch">3.3 Branch</h3>
<p>A <strong>branch</strong> is a separate line of development.</p>
<ul>
<li><p><code>main</code> (or <code>master</code>) → Default branch</p>
</li>
<li><p>Feature branches → New ideas or experiments</p>
</li>
</ul>
<p>Analogy:</p>
<blockquote>
<p>Writing different endings of the same story 📖</p>
</blockquote>
<h3 id="heading-34-head">3.4 HEAD</h3>
<p><strong>HEAD</strong> points to where you are currently working.</p>
<ul>
<li>Usually points to the latest commit of the current branch</li>
</ul>
<p>Think of HEAD as:</p>
<blockquote>
<p>“Your current position marker” 📍</p>
</blockquote>
<h3 id="heading-35-working-directory-staging-area-repository">3.5 Working Directory, Staging Area, Repository</h3>
<p>Git works in <strong>three areas</strong>:</p>
<ol>
<li><p><strong>Working Directory</strong> → Where you edit files</p>
</li>
<li><p><strong>Staging Area</strong> → Where you prepare changes</p>
</li>
<li><p><strong>Repository</strong> → Where commits are stored</p>
<ol>
<li><p>Local Repository → Saved on your local system</p>
</li>
<li><p>Remote Repository → Saved online</p>
</li>
</ol>
</li>
</ol>
<p>Real-Life Example:</p>
<ol>
<li><p><strong>Writing an Exam Answer Sheet</strong></p>
<p> Think of Git like writing and submitting an exam.</p>
<pre><code class="lang-plaintext"> 📝 Working Directory  → Rough Notebook
 --------------------------------------
 - You write your answers freely
 - You can make mistakes and erase them
 - Nothing is official yet
 (git edit files)

         │
         │ git add
         ▼

 📄 Staging Area  → Selected Answers Sheet
 -----------------------------------------
 - You choose which answers are ready
 - You check and approve them
 - Ready to submit
 (git prepare changes)

         │
         │ git commit
         ▼

 🏫 Local Repository  → Your Personal Record
 ------------------------------------------
 - Your final answers are stored on your own desk
 - You can review or edit history
 - Safe, but only on your computer

         │
         │ git push
         ▼

 🌐 Remote Repository  → School Records Server
 --------------------------------------------
 - Answers submitted officially to the school
 - Stored permanently, accessible by teachers/classmates
 - Backup and collaboration
</code></pre>
</li>
<li><p><strong>Writing a Story</strong></p>
<p> Think of Git like writing a story.</p>
</li>
</ol>
<pre><code class="lang-plaintext">        ✏️ Working Directory
   (Your notebook — where you write freely)
---------------------------------
You write &amp; edit your story:
- Add characters
- Change plot
- Fix typos
- Experiment freely

          |
          | git add
          v

        📋 Staging Area
   (Selected pages ready to save)
---------------------------------
You pick the parts you like:
- Final intro ✓
- Polished dialogue ✓
- Ending still draft ✗

          |
          | git commit
          v

        📚 Local Repository
   (Saved story on your computer)
---------------------------------
Versioned &amp; permanent locally:
- Chapter 1 saved
- Version 1.0
- Can revert anytime

          |
          | git push
          v

        🌐 Remote Repository
   (Published story online — GitHub, GitLab)
---------------------------------
Backed up and shareable:
- Friends can read it
- Safe from losing your work
- Can collaborate with others
</code></pre>
<h3 id="heading-quick-mapping">Quick Mapping:</h3>
<div class="hn-table">
<table>
<thead>
<tr>
<td>Git Step</td><td>Story Analogy</td><td>Command</td></tr>
</thead>
<tbody>
<tr>
<td>Working Directory</td><td>Writing in notebook</td><td>—</td></tr>
<tr>
<td>Staging Area</td><td>Picking final paragraphs</td><td><code>git add</code></td></tr>
<tr>
<td>Local Repository</td><td>Saving story on shelf</td><td><code>git commit</code></td></tr>
<tr>
<td>Remote Repository</td><td>Publishing online</td><td><code>git push</code></td></tr>
</tbody>
</table>
</div><p>💡 <strong>Memory Tip:</strong></p>
<ul>
<li><p><strong>Add</strong> = “I want this in the next version”</p>
</li>
<li><p><strong>Commit</strong> = “Save it on my shelf”</p>
</li>
<li><p><strong>Push</strong> = “Share it online”</p>
</li>
</ul>
<h2 id="heading-4-common-git-commands-with-examples">4. Common Git Commands (With Examples)</h2>
<p>Let’s go step by step.</p>
<h3 id="heading-41-git-init">4.1 <code>git init</code></h3>
<p>Initializes Git in a project.</p>
<pre><code class="lang-plaintext">git init
</code></pre>
<p>📌 Creates a hidden <code>.git</code> folder</p>
<h3 id="heading-42-git-status">4.2 <code>git status</code></h3>
<p>Shows the current state of files.</p>
<pre><code class="lang-plaintext">git status
</code></pre>
<p>Tells you:</p>
<ul>
<li><p>Which files changed</p>
</li>
<li><p>Which are staged</p>
</li>
<li><p>What Git is tracking</p>
</li>
</ul>
<h3 id="heading-43-git-add">4.3 <code>git add</code></h3>
<p>Adds files to the staging area.</p>
<pre><code class="lang-plaintext">git add file.txt
git add .
</code></pre>
<p>📌 Think: “I want to include this in my next save”</p>
<h3 id="heading-44-git-commit">4.4 <code>git commit</code></h3>
<p>Creates a snapshot of staged changes.</p>
<pre><code class="lang-plaintext">git commit -m "Add user login feature"
</code></pre>
<p>📌 Always write meaningful messages</p>
<h3 id="heading-45-git-log">4.5 <code>git log</code></h3>
<p>Shows commit history.</p>
<pre><code class="lang-plaintext">git log
</code></pre>
<p>You’ll see:</p>
<ul>
<li><p>Commit ID</p>
</li>
<li><p>Author</p>
</li>
<li><p>Date</p>
</li>
<li><p>Message</p>
</li>
</ul>
<h3 id="heading-46-git-branch">4.6 <code>git branch</code></h3>
<p>Lists or creates branches.</p>
<pre><code class="lang-plaintext">git branch
git branch feature-login
</code></pre>
<h3 id="heading-47-git-checkout-git-switch">4.7 <code>git checkout</code> / <code>git switch</code></h3>
<p>Move between branches.</p>
<pre><code class="lang-plaintext">git switch feature-login
</code></pre>
<h2 id="heading-5-basic-git-workflow-from-scratch">5. Basic Git Workflow (From Scratch)</h2>
<p>Let’s see how a developer actually uses Git.</p>
<h3 id="heading-step-1-create-project">Step 1: Create project</h3>
<pre><code class="lang-plaintext">mkdir my-app
cd my-app
git init
</code></pre>
<h3 id="heading-step-2-create-a-file">Step 2: Create a file</h3>
<pre><code class="lang-plaintext">echo "Hello Git" &gt; app.txt
</code></pre>
<h3 id="heading-step-3-check-status">Step 3: Check status</h3>
<pre><code class="lang-plaintext">git status
</code></pre>
<h3 id="heading-step-4-stage-changes">Step 4: Stage changes</h3>
<pre><code class="lang-plaintext">git add app.txt
</code></pre>
<h3 id="heading-step-5-commit">Step 5: Commit</h3>
<pre><code class="lang-plaintext">git commit -m "Initial commit"
</code></pre>
<p>🎉 Your first Git commit is done!</p>
<h2 id="heading-6-local-repository-structure-explained-with-a-story-analogy">6. Local Repository Structure — Explained with a Story Analogy</h2>
<pre><code class="lang-bash">📚 Local Repository (Your personal story archive)
-----------------------------------------------
.git/            → Hidden folder with Git data
    ├── HEAD        → Points to the current chapter/version
    ├── refs/       → Tracks branches (drafts, alternate endings)
    ├── objects/    → Stores all saved story versions (commits)
    ├── index       → Staging area info (what’s ready to commit)
    └── config      → Repository settings (author, rules)

story.txt       → Your actual story file
chapter1.txt    → Another story file
chapter2.txt    → Optional files <span class="hljs-keyword">in</span> working directory
</code></pre>
<div class="hn-table">
<table>
<thead>
<tr>
<td>Git Component</td><td>Analogy</td></tr>
</thead>
<tbody>
<tr>
<td><code>.git/</code></td><td>Your <strong>secret vault</strong> with all saved versions and rules</td></tr>
<tr>
<td><code>HEAD</code></td><td>Bookmark showing <strong>which chapter/version you’re on</strong></td></tr>
<tr>
<td><code>refs/</code></td><td>Labels for <strong>different drafts or story branches</strong></td></tr>
<tr>
<td><code>objects/</code></td><td><strong>All saved paragraphs</strong> in compressed form</td></tr>
<tr>
<td><code>index</code></td><td>List of <strong>pages you’ve chosen to save next</strong></td></tr>
<tr>
<td><code>config</code></td><td>Settings: <strong>author name, email, preferences</strong></td></tr>
<tr>
<td>Story files</td><td>Your <strong>actual story you edit every day</strong></td></tr>
</tbody>
</table>
</div><p>💡 <strong>Note:</strong><br />Even if you delete files from your working directory, <code>.git/objects/</code> still keeps the previous versions. That’s why Git can restore lost work!</p>
<p>We will talk in detail about <code>.git</code> folder in another blog.</p>
<h2 id="heading-conclusion">Conclusion</h2>
<p>Git may feel confusing at first, but it’s just a <strong>smart history tracker</strong>.</p>
<p>Start small:</p>
<ul>
<li><p>Make changes</p>
</li>
<li><p>Stage them</p>
</li>
<li><p>Commit often</p>
</li>
</ul>
<p>With practice, Git becomes second nature — and an essential skill for every developer.</p>
]]></content:encoded></item></channel></rss>