<?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 Arunav Roy Chowdhury on Medium]]></title>
        <description><![CDATA[Stories by Arunav Roy Chowdhury on Medium]]></description>
        <link>https://medium.com/@arunav.rc?source=rss-cefb452b526f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QzNJmUTk2zC5JAdDWr7xjA.jpeg</url>
            <title>Stories by Arunav Roy Chowdhury on Medium</title>
            <link>https://medium.com/@arunav.rc?source=rss-cefb452b526f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 10:23:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arunav.rc/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[Git Rebase Loop: How to Fix the “Continue” Error When Initializing Repositories]]></title>
            <link>https://medium.com/@arunav.rc/git-rebase-loop-how-to-fix-the-continue-error-when-initializing-repositories-df86c99f6183?source=rss-cefb452b526f------2</link>
            <guid isPermaLink="false">https://medium.com/p/df86c99f6183</guid>
            <category><![CDATA[microsoft-fabric]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github-repositories]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-coding-agent]]></category>
            <dc:creator><![CDATA[Arunav Roy Chowdhury]]></dc:creator>
            <pubDate>Fri, 11 Sep 2026 07:41:48 GMT</pubDate>
            <atom:updated>2026-09-15T09:58:19.505Z</atom:updated>
            <content:encoded><![CDATA[<p>Just a few days ago, I finally decided to upload my local repository onto my newly created project’s GitHub repository. I assumed it would be a straightforward task of just using either the Git Extensions UI from VS Code or using the git commands from the terminal. This assumption was valid as the repository was empty and this would be the first commit, push, and pull request for the repository.</p><p>Like all things in life, the moment we assume something will happen quickly, that’s where we are usually proven wrong and things take more time. In my case, the new repository already had a starter template for the Python version of .gitignore and README.md. At the time of publishing, I did not take this into account, and I also had my own local version of those two files. Eventually, when I staged the changes and did a push to my repo, there were merge conflicts on both of those files.</p><p>Initially, I assumed it was not a big deal; I will just merge them and do a push/pull request and be done. But then it did not happen. At the same time, I realized that VS Code took my local folder name as the default repository and was trying to create a new one on GitHub instead of using the one I had already made. This further complicated my situation, and I did all I could to fix it: I merged the changes on the UI, I ran git rebase commands, I did git add, and many more.</p><p>I even asked AIs like Claude, Gemini, and Copilot, and they all gave me the same solutions. I tried them all, and still, it refused to work. Nothing worked; in the end, all I got was a very cryptic message:</p><p><em>“You must edit all merge conflicts and then mark them as resolved using git add”</em></p><p>This happened even though I did the exact same thing! This error kept on repeating itself no matter what I did. At this point, I was really tired-a 5-minute job became an hour’s work, the AI failed to help me, and nothing worked.</p><p>Now, I am making this post to help people who are in the same position as mine today or in the future. Having said that, what I first did was really old school, something we would do before the AI era: I went to Stack Overflow and did some research. Perhaps someone had the same issue as mine a couple of years ago. Surprisingly, they updated the site, and it looks fresh. After some research and digging into my terminal history, here is the exact breakdown of what went wrong and how I actually fixed it.</p><p><strong>The Scenario</strong></p><p>You have an existing local project. You create a remote GitHub repository, but it was initialized with a default README.md or .gitignore. When you connect them and try to sync, Git asks you to pull the remote changes first.</p><p>You run:</p><pre>git pull origin main — rebase</pre><p>This triggers a merge conflict because both local and remote have their own versions of .gitignore or README.md. You resolve the conflicts, stage the files with git add ., and run:</p><pre>git rebase — continue</pre><p>Instead of completing, Git enters an infinite loop:</p><p>You must edit all merge conflicts and then mark them as resolved using git add</p><p><strong>Why AI Coding Assistants and Online Advice Fail Here</strong></p><p>When you search this error or ask an AI assistant (Claude, Gemini, Copilot), they usually tell you one of two things:</p><ol><li><strong>“Just run git add . and git rebase — continue again.”</strong><br> This advice completely fails because Git’s index has gotten out of sync with the rebase state. Running it in a loop changes nothing.</li><li><strong>“Just run git rebase — skip.”</strong><br> This advice is dangerous. Running git rebase — skip tells Git to completely throw away the commit being rebased. If your commit contains real code you spent days writing, — skip will drop that commit and lose your changes.</li></ol><p>For a brand-new repository where Git history doesn’t matter yet, you do not need to fight a broken rebase state or risk dropping your code with — skip.</p><p><strong>What Actually Happened in My Terminal (The Struggle)</strong></p><p>Looking back at my PowerShell history, here is the exact loop I was stuck in:</p><p><em># Attempting to pull and rebase</em></p><pre>git pull origin main — rebase</pre><p><em># Staging resolved files and trying to continue</em></p><pre>git add .gitignore</pre><pre>git rebase — continue # ❌ FAILED</pre><p><em># Staging all files</em></p><pre>git add -A<br>git rebase - continue # ❌ FAILED<br>git add -A<br>git rebase - continue # ❌ FAILED</pre><p><em># Staging individual files &amp; README</em></p><pre>git add README.md<br>git rebase - continue # ❌ FAILED<br>git add .<br>git add readme.md<br>git rebase - continue # ❌ FAILED: Still stuck in the loop!</pre><p>No matter how many times I marked files as resolved and staged them, git rebase — continue refused to budge.</p><p><strong>The Real Solution: Abort, Reset, and Clean Slate</strong></p><p>Instead of gambling with dangerous commands, the safest and cleanest exit is to abort the rebase, reset local Git tracking, and do a clean force push.</p><p><strong>Step 1: Safely Abort the Rebase</strong></p><p>First, hit the emergency brake. git rebase — abort is 100% safe-it never deletes your code; it simply returns your project to its pre-rebase state:</p><pre>git rebase — abort</pre><p><strong>Step 2: Wipe the Corrupted Local Git Tracking</strong></p><p>Delete the hidden .git metadata folder to completely start fresh:</p><p><em># Windows (PowerShell)</em></p><pre>Remove-Item -Recurse -Force .git</pre><p><em># macOS / Linux / Git Bash</em></p><pre>rm -rf .git</pre><p><strong>Step 3: Re-initialize and Make a Clean Initial Commit</strong></p><pre>git init<br>git add .<br>git commit -m &quot;Initial Commit with my project code&quot;<br>git branch -M main</pre><p><strong>Step 4: Reconnect to Your Remote Repository</strong></p><p>Make sure the remote URL points to the actual repository you created on GitHub:</p><pre>git remote add origin https://github.com/&lt;YOUR_USERNAME&gt;/&lt;YOUR_REPO_NAME&gt;.git</pre><p><strong>Step 5: Force Push to Overwrite GitHub’s Starter Templates</strong></p><pre>git push -u origin main — force</pre><p>Because this is your project’s initial push, — force safely replaces the remote placeholder files (README.md and default .gitignore) with your verified local code.</p><p><strong>Post-Fix Cleanup: Untracking __pycache__</strong></p><p>In Python projects, a common reason files get tangled up during initial commits is that __pycache__ folders get tracked before the .gitignore takes effect.</p><p>Adding __pycache__/ to .gitignore does <strong>not</strong> untrack files that are already inside Git’s index. To untrack them without deleting them from your hard drive, run:</p><pre># Untrack all __pycache__ folders recursively<br>git rm -r - cached &quot;**/**/__pycache__&quot;<br># Commit the cleanup<br>git add .gitignore<br>git commit -m &quot;Fix gitignore and remove tracked pycache&quot;<br>git push origin main</pre><p><strong>Quick Reference Summary</strong></p><ul><li><strong>Abort a stuck rebase</strong>: git rebase — abort</li><li><strong>Reset Git tracking (PowerShell)</strong>: Remove-Item -Recurse -Force .git</li><li><strong>Initialize clean repo</strong>: git init</li><li><strong>Set branch to main</strong>: git branch -M main</li><li><strong>Connect remote</strong>: git remote add origin &lt;URL&gt;</li><li><strong>Force push local code</strong>: git push -u origin main — force</li><li><strong>Untrack cached files</strong>: git rm -r — cached “**/**/__pycache__”</li></ul><p><strong>Best Practices for Next Time</strong></p><ol><li><strong>Create Truly Empty Remote Repositories</strong>: When creating a GitHub repo for existing local code,<strong>uncheck</strong> “Add a README file”, “Add .gitignore”, and “Choose a license”. An empty remote repo accepts your initial git push without any conflicts.</li><li><strong>Commit .gitignore First</strong>: Always create and commit your .gitignore locally before running Python scripts so __pycache__ files never get tracked in the first place.</li><li><strong>Don’t Fight Rebase Loops</strong>: If git rebase — continue fails repeatedly after git add ., run git rebase — abort immediately rather than cycling through endless stages.</li></ol><h3>A note on AI usage</h3><p>The troubleshooting and the commands in this post are from my actual debugging session. AI was used to help format and draft the final write-up to save time. I have also checked the article a few times for it’s accuracy, however errors can always creep in.</p><p><em>Originally published at </em><a href="https://arunavontech.blogspot.com/2026/09/git-rebase-loop-how-to-fix-continue.html"><em>https://arunavontech.blogspot.com</em></a><em> on September 11, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df86c99f6183" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bringing Dynamism to the Silver and Gold Layers Using Artificial Intelligence]]></title>
            <link>https://medium.com/@arunav.rc/bringing-dynamism-to-the-silver-and-gold-layers-using-artificial-intelligence-1877a6c6e113?source=rss-cefb452b526f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1877a6c6e113</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-governance]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[medallion-architecture]]></category>
            <category><![CDATA[microsoft-fabric]]></category>
            <dc:creator><![CDATA[Arunav Roy Chowdhury]]></dc:creator>
            <pubDate>Sun, 23 Aug 2026 23:12:33 GMT</pubDate>
            <atom:updated>2026-08-24T10:09:45.879Z</atom:updated>
            <content:encoded><![CDATA[<p>In data engineering it has always been about the ETL, Extract the data to a data lake in a bronze layer, then we transform the data present in the bronze layer put it in the silver layer and finally we have the gold layer where we have the actual business data ready to be consumed by data analysts and other stake holders such as managers, at the CXO level, customers, investors etc. One such famous platform for this is Power BI where we build the semantic model and publish the reports for others via an app or dashboard view linked to the actual Power BI reports etc. We also use several cloud platforms to achieve ETL, and different platforms have different solutions. I for instance am using the Microsoft Fabric, the latest and greatest analytics SAAS platform by Microsoft where they unify all the tools required by Data engineers, Data Analysts and Semantic Engineers and other data professionals into a single unified platform with a unified data lake (One Lake) as the single data lake for all the organizational needs. We use these cloud platforms, and I suppose even on premises ones to create knowledge out of the noise. Now, any data infrastructure we create always handles specific business needs. For each business requirement we need to create a different data solution.</p><p>The other day while discussing with my colleagues about the medallion architecture we came up with a point that the silver and the gold layers are fixed and thoroughly inspected by data professionals for accuracy, correctness and for data governance/ security. So, when the stakeholders consume the data, they get the highest quality data possible. With the advent and introduction of AI on the data platforms we asked a question could we build Dynamic Silver/Gold Layers using AI such that if our original semantic model does not answer certain questions raised by the stakeholders, can AI dynamically change the silver and the gold layers to provide the user with their answers? What would it look like? How would it work? Would it provide fake or leak sensitive information? Today’s blog post makes an attempt to answer these questions, for me personally the entire idea of a dynamic silver/gold layers is a new topic as well and my aim with this post is to open a healthy discussion towards this topic, while I present a high-level solution (of course its scope is limited) and I expect that through a constructive discussion we can together solve the pitfalls of my current solution and create an even better solution!</p><h3>Proposed solution</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*SFAqJisupRlOo6tK.png" /></figure><h3>Introduction</h3><p>The way I think this could work is at first we have the original bronze, silver and gold layers connected to a consumption such as a Power BI dashboard to answer fixed questions that were pre decided by a collaboration between the Management, CXO leadership, Data Engineers, Governance and other data professionals within the organization to use among themselves and other data consumers. Once we have this Single Source of Truth for a particular requirement within the organization, we don’t touch it unless agreed upon. Now changing this SSOT is time consuming every time we want it to answer different sets of business questions and ad-hoc simulations that it wasn’t originally designed for. This would require changes to the silver, gold and even bronze layers, which isn&#39;t economical all the time. However, with the use of Artificial Intelligence within our architecture we could change the silver and gold layers automatically with sessions-based responses to each ad hoc simulation questions when requested by the stakeholders of the model.</p><h3>Solution Explanation</h3><h4>The Pieces</h4><ol><li>The way this would work is by first making some ground rules (Guard rails) for the AI that it isn’t allowed to break. These rules are a cornerstone of the architecture as they would prevent the AI from hallucinations and unauthorized access to tables especially with PIIs and other information such as credit card etc.</li><li>AI isn’t allowed access to the bronze layer since several decisions need to be made when converting bronze to silver tables and they are best left with Data professionals for safety’s sake.</li><li>The AI can only manipulate the Silver and Gold Layers based on the ontology set by the domain experts and the data teams.</li><li>The ontology<br>a. The ontology contains Entity mappings such as business terms to actual tables and columns.<br>b. Metric and formula logic and official definitions and rules e.g. what is a gross margin and rules such as convert the currency before summing.<br>c. Join rules.<br>d. Table/Column level allows silver tables and corresponding columns the AI has access.<br>e. Security rules, Checks tied to delegated access.</li><li>Security<br>I propose that we make the AI like a service account and the tables access entirely depends on the person querying the AI, A delegated access based on the user’s own access permissions to tables and data within the organization.</li><li>Raw sessions log (Gap Log)<br>a. The Gap log stores three things, Unresolved concepts, who requested it and when.<br>b. This log is exclusively accessible only by data governance and the data engineering team.<br>c. The gap log exists as a source of accountability and traceability.</li><li>Sessions and simulations storage<br>It stores the entire AI made silver, gold layers and the simulations that were performed by the users at each session.</li><li>Emergency controls<br>I propose that anyone in the organization can stop the AI from accessing data if the AI becomes rogue or oversteps its boundaries, but only a handful of individuals from the levels of CXO, data professional team can activate the AI again.</li></ol><h4>Putting pieces together</h4><p>I will assume that we are in a situation where the existing silver and gold layers were insufficient to answer the questions that were asked. And now the AI session is kicking in. The way the proposed architecture works is when an unsupported question is asked to our gold layer, the AI kicks in and does a few things immediately. First, the AI checks the users’ access levels this prevents them from any unauthorized table scans. Next the AI matches the questions with its own ontology rules and guardrails that tell the AI what the question means in terms of business, which silver tables to access, the allowed joins, the business terms’ correspondence to the tables and columns, rules dictating formula creations and security rules. This prevents the AI from hallucinations and security risks. The AI will also explicitly say that it can’t compute the simulations if there exists no way to answer questions within the data in the silver tables or it couldn’t parse the business terms used by the stakeholder of the simulation. One of the reasons why I decided to not give bronze access to AI is due to the multiple decisions made by data engineers on security, data quality, and design decisions. AI without strict guidance by the data team shouldn’t handle the bronze layer. The silver and gold layers are another story as these contain transformed data which have gone through strict quality controls and other requirements all handled by data professionals. The AI Engine then creates a session copy (a view) of the old silver/ gold layers. The AI manipulates only the copied data within the session following the rules described earlier and produces output for consumption. Examples could be “what if” simulations. The entire session including what the steps AI took, the final gold/Silver layers that were created, who requested the data, and their business requests along with everything that happened in the session is stored in a sessions and simulations storage for further analysis such as auditing, data governance etc. along with this an additional GAP LOG is created and it stores unresolved concepts, the requester and its time stamp. Which can later on be used for the aggregated trends analysis on the GAP LOG such as most frequently unresolved concepts, patterns of request by role/level/ department level and trends over time. These results are then accessible at the CXO level, Data engineers and Data Governance teams. Emergency controls are also available that can stop the session anytime if the AI has gone rogue and is accessing unauthorized data. Anyone in the organization can stop the AI, but only a few selected individuals from the data team and CXO level individuals can access it.</p><h3>What’s next?</h3><ol><li>In the next blog post, I will talk about a real-life example of how we can use this architecture to solve a single real-world problem.</li><li>I would like people to tell me in the comments on LinkedIn or my blog of what you think I should add to the architecture what is missing, where I went wrong and general feedback about it.</li></ol><p><em>Originally published at </em><a href="https://arunavontech.blogspot.com/2026/08/bringing-dynamism-to-silver-and-gold.html"><em>https://arunavontech.blogspot.com</em></a><em> on August 23, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1877a6c6e113" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>