<?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 Nishchay on Medium]]></title>
        <description><![CDATA[Stories by Nishchay on Medium]]></description>
        <link>https://medium.com/@nishchaypce?source=rss-ac198e8e1b21------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*EJke2MucELiwKu6R.jpg</url>
            <title>Stories by Nishchay on Medium</title>
            <link>https://medium.com/@nishchaypce?source=rss-ac198e8e1b21------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 03:42:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nishchaypce/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[The Journey of a Code Change: From Your Laptop to GitHub]]></title>
            <link>https://medium.com/@nishchaypce/the-journey-of-a-code-change-from-your-laptop-to-github-26201757030c?source=rss-ac198e8e1b21------2</link>
            <guid isPermaLink="false">https://medium.com/p/26201757030c</guid>
            <dc:creator><![CDATA[Nishchay]]></dc:creator>
            <pubDate>Sun, 31 May 2026 15:03:41 GMT</pubDate>
            <atom:updated>2026-05-31T15:09:53.551Z</atom:updated>
            <content:encoded><![CDATA[<p><em>“Every commit has a story. Understanding that story is the easiest way to understand Git.”</em></p><h3>Introduction</h3><p>Have you ever fixed a bug, committed your code, and wondered what actually happens after you type <strong>git commit</strong> or <strong>git push</strong>?</p><p>When I started learning Git, I could use the commands, but I didn’t fully understand what was happening behind the scenes. Terms like <strong><em>Working Directory</em>, <em>Staging Area</em>, <em>Local Repository</em>, and <em>Remote Repository</em></strong> felt like concepts I was expected to memorize rather than understand.</p><p>Everything changed when I stopped focusing on the commands and started focusing on the journey of a code change.</p><p>Once I understood how code moves from my laptop to GitHub and eventually to other team members, the entire workflow became much easier to understand and remember.</p><p>In this blog, I’d like to share the same learning approach that helped me connect the dots.</p><h3>Why Git Matters</h3><p>Imagine accidentally deleting a working feature, introducing a bug into production, or trying to figure out who modified a critical piece of code six months ago.</p><p>Without version control, recovering those changes can be difficult and sometimes impossible.</p><p>Git solves this problem by maintaining a complete history of your project. It allows developers to track changes, collaborate safely, restore previous versions, and work on multiple features simultaneously without interfering with each other’s work.</p><p>Today, Git has become an essential tool for software teams of all sizes.</p><h3>My First Git Sketch</h3><p>While learning Git, I often found myself asking questions such as:</p><ul><li>Where is my code actually stored?</li><li>What happens when I execute<strong> git add</strong>?</li><li>What is the <strong>Staging Area</strong>?</li><li>Where does a commit get stored?</li><li>How does GitHub fit into the workflow?</li></ul><p>To answer these questions, I created a simple sketch to visualize the movement of a code change.</p><h3>My Original Git Learning Sketch</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o0oIyrIbsgTtKSkwHGiSag.png" /><figcaption>This rough diagram helped me visualize how code moves from the Working Directory to GitHub through the Staging Area and Local Repository..</figcaption></figure><p>This sketch helped me understand four important components of Git.</p><h3>Working Directory</h3><p>This is where developers create and modify files.</p><p><strong>Examples:</strong></p><p><strong>vim app.py</strong><br>or</p><p><strong>code app.py</strong></p><p>At this stage, changes exist only in the project folder and have not yet been recorded by Git.</p><h3>Staging Area</h3><p>When we execute: <strong>git add .</strong></p><p>Git moves the selected changes into the <strong>Staging Area</strong>.</p><p>Think of the Staging Area as a review desk where we decide what should be included in the next commit.</p><h3>Local Repository</h3><p>When we run: <strong>git commit -m “Initial Commit”</strong></p><p>Git stores a snapshot of those changes inside the local repository.</p><p>Internally, this information is stored inside the hidden <strong>.git</strong> directory.</p><h3>Remote Repository (GitHub)</h3><p>Finally: <strong>git push origin main</strong></p><p>uploads the commits to GitHub so that the rest of the team can access them.</p><p>Once I could visualize the flow:</p><p><strong>Working Directory → Staging Area → Local Repository → GitHub</strong></p><p>the entire Git workflow started making sense.</p><h3>Git vs GitHub</h3><p>One of the most common questions among beginners is:</p><blockquote><em>“Aren’t </em><strong><em>Git and GitHub</em></strong><em> the same thing?”</em></blockquote><p>Not exactly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*7Bc7Fd77lGrHC2CyqxwHFQ.jpeg" /><figcaption>GIT vs GITHUB</figcaption></figure><p>A simple analogy:</p><p>📓 <strong>Git = Your personal notebook</strong></p><p>🏛️ <strong>GitHub = A shared library where everyone can access and collaborate on that notebook</strong></p><h3>Git Workflow at a Glance</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gFQ4u7KYb71mtSkPRAU9Sw.png" /><figcaption>The Journey of a Code Change — From Local Development to Team Collaboration</figcaption></figure><p>This infographic provides a high-level view of how code moves through Git, from the Working Directory and Staging Area to the Local Repository and GitHub. It also highlights common commands, branching strategies, collaboration workflows, and best practices used in day-to-day development.</p><p>The infographic provides a high-level overview of:</p><ul><li>Git Architecture</li><li>Code Lifecycle</li><li>Team Collaboration</li><li>Branching Strategy</li><li>Frequently Used Commands</li><li>Best Practices</li></ul><p>If you’re new to Git, spending a few minutes understanding this workflow can save hours of confusion later.</p><h3>Following the Journey of a Code Change</h3><p>Let’s assume you’re working on a login feature.</p><p>You modify a file named <strong>login.py</strong>, test the changes, and prepare to share them with your team.</p><h3>Step 1: Create or Modify Code</h3><p>Every change starts in the Working Directory.</p><p>You write new code, fix bugs, or improve existing functionality.</p><p>At this stage, Git can detect the changes but has not yet recorded them.</p><h3>Step 2: Stage Changes</h3><p><strong>git add .</strong></p><p>This tells Git which changes should be included in the next commit.</p><h3>Step 3: Commit Changes</h3><p><strong>git commit -m “Added login validation”</strong></p><p>A commit acts as a checkpoint in your project’s history.</p><p>It allows you to revisit previous versions whenever required.</p><h3>Step 4: Push Changes</h3><p><strong>git push origin main</strong></p><p>This uploads your commits to GitHub and makes them available to the team.</p><h3>Step 5: Pull Team Updates</h3><p><strong>git pull origin main</strong></p><p>This synchronizes your local repository with the latest changes from GitHub.</p><p>The complete journey can be summarized as:</p><p><strong>Edit → Stage → Commit → Push → Collaborate</strong></p><p>This simple workflow is repeated thousands of times every day across software projects around the world.</p><h3>Commands I Use Most Frequently</h3><p>Although Git provides hundreds of commands, most daily activities revolve around a small set.</p><p>Commands:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*H-c5j56vgT6sbKRaz-oToQ.png" /></figure><p>If you’re just getting started, mastering these commands will cover most day-to-day development tasks.</p><h3><strong>One Thing That Helped Me Learn Faster</strong></h3><p>The biggest mistake I made initially was trying to memorize Git commands without understanding the workflow.</p><p>Once I started visualizing where my code actually lived and how it moved between different stages, Git became significantly easier to understand.</p><p>If you’re new to Git, focus on understanding the workflow first and the commands second.</p><h3>Lessons I Learned While Learning Git</h3><p>Looking back, a few lessons made my Git journey significantly easier.</p><p>✅ Understand the workflow before memorizing commands</p><p>✅ Commit small and meaningful changes</p><p>✅ Write meaningful commit messages</p><p>✅ Pull before pushing</p><p>✅ Use feature branches</p><p>✅ Review changes before committing</p><p>Most importantly:</p><p>❌ Never commit passwords, API keys, certificates, or sensitive credentials.</p><h3>The Daily Workflow I Follow</h3><p>Whenever I’m working on a feature, my workflow usually looks like this:</p><p><strong>git status<br>git add .<br>git commit -m “Meaningful message”<br>git pull origin main<br>git push origin main</strong></p><p>Simple, repeatable, and effective.</p><h3>Final Thoughts</h3><p>Git can initially seem overwhelming because of the number of commands and concepts involved. However, once you understand the journey of a code change, everything starts fitting together.</p><p>For me, the biggest breakthrough came from visualizing the workflow rather than memorizing commands.</p><p>Once you understand that journey, Git becomes less about commands and more about confidence, collaboration, and maintaining a reliable history of your work.</p><p>The next time you type <strong>git add, git commit, or git push</strong>, remember that you&#39;re not just executing commands—you&#39;re moving a code change through a workflow that powers millions of software projects around the world.</p><p>Happy Coding! 🚀</p><h3>About the Author</h3><p>I work with Databases and Infrastructure technologies and enjoy understanding how systems work behind the scenes. This article is based on my personal learning journey while exploring Git and GitHub and simplifying the concepts through visual diagrams and practical examples.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26201757030c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>