<?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 Jivan Supe on Medium]]></title>
        <description><![CDATA[Stories by Jivan Supe on Medium]]></description>
        <link>https://medium.com/@jivansupe?source=rss-32e9ad8a4576------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*dP12ashrPSbUWy_G.</url>
            <title>Stories by Jivan Supe on Medium</title>
            <link>https://medium.com/@jivansupe?source=rss-32e9ad8a4576------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 23:04:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jivansupe/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[ Seamlessly Switch Between GitHub Accounts — No Prompts, No Pain (v2.0)]]></title>
            <link>https://medium.com/@jivansupe/seamlessly-switch-between-github-accounts-no-prompts-no-pain-v2-0-c558c1d20f76?source=rss-32e9ad8a4576------2</link>
            <guid isPermaLink="false">https://medium.com/p/c558c1d20f76</guid>
            <category><![CDATA[devops-tool]]></category>
            <category><![CDATA[git-credential-manager]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[switching]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Jivan Supe]]></dc:creator>
            <pubDate>Tue, 08 Jul 2025 04:59:05 GMT</pubDate>
            <atom:updated>2025-07-08T04:59:05.762Z</atom:updated>
            <content:encoded><![CDATA[<h3>🔄 Seamlessly Switch Between GitHub Accounts — No Prompts, No Pain (v2.0)</h3><blockquote><em>Forget </em><em>git-askpass, credential errors, and identity confusion. Here’s how to </em><strong><em>instantly switch between GitHub accounts</em></strong><em> using a smart shell script with token-based authentication.</em></blockquote><h3>🙋‍♂️ Who Is This For?</h3><p>If you:</p><ul><li>Use <strong>multiple GitHub accounts</strong> (e.g., personal + work)</li><li>Contribute to <strong>private customer/org repos</strong></li><li>Want <strong>zero GUI credential prompts</strong></li><li>Need Git to “just work” across projects…</li></ul><p>Then this tool is for you.</p><h3>🚀 What’s New in Version 2.0?</h3><p>After the success of <a href="https://medium.com/@jivansupe/master-multi-account-git-switching-in-minutes-boost-your-development-efficiency-073385b75d4c">version 1</a>, the tool now supports:</p><p>✅ External config files (no hardcoding credentials)<br> ✅ Multiple identities with one command<br> ✅ GitHub token verification via API<br> ✅ Promptless CLI experience (no askpass or GCM popups)<br> ✅ Works across <strong>any</strong> github.com repo (including customer-owned)<br> ✅ Cleaner logging and safe credential storage</p><h3>🧠 Why This Tool Exists</h3><p>Let’s face it: switching GitHub accounts using Git alone is:</p><ul><li>❌ Confusing</li><li>❌ Inconsistent</li><li>❌ Error-prone (hello 403!)</li></ul><p>You might:</p><ul><li>Commit with the wrong identity</li><li>Lose hours debugging token mismatches</li><li>Fight endless username/password prompts</li></ul><p>So I built this script to <strong>switch accounts in one step</strong> — securely, reliably, and silently.</p><h3>⚙️ How It Works</h3><ol><li>You run ./change.sh</li><li>It asks: “Which GitHub account?”</li><li>It reads your token &amp; identity from config files</li><li>Git is updated:</li></ol><ul><li>Global user.name and user.email</li><li>HTTPS credentials using Personal Access Token (PAT)</li><li>Disables GUI auth (GCM / askpass)</li></ul><p>5. It verifies the token with the GitHub API to ensure it’s valid</p><p>6. That’s it — Git is ready for use!</p><h3>🔐 What You’ll Need</h3><h3>✅ A GitHub Token per Account</h3><p>Go to <a href="https://github.com/settings/tokens">https://github.com/settings/tokens</a><br>Create <strong>one classic PAT</strong> per account with:</p><ul><li>repo</li><li>read:org (if accessing org/private repos)</li></ul><h3>📁 Setup Files</h3><h3>1. ~/.github_tokens</h3><pre># Format: account=token<br>personal=ghp_xxxxxxxxxxxxxxxxxxx<br>work=ghp_yyyyyyyyyyyyyyyyyyyyyyy</pre><h3>2. ~/.github_accounts</h3><pre># Format: account=username,email<br>personal=abc,abc@abc.com<br>work=abc-def,abc.def@def.com</pre><p>No hardcoded usernames/emails in the script.<br> Completely config-driven ✅</p><h3>🧪 Example Usage</h3><pre>chmod +x change.sh<br>./change.sh</pre><pre>Select a GitHub account:<br>1) personal<br>2) work<br>#? 2</pre><pre>🔄 Updating stored GitHub credentials...<br>✅ Switched to &#39;work&#39; account globally!<br>✅ Authentication successful for &#39;abc-def&#39;!</pre><p>From here, all git push, pull, and clone operations use the correct account — no prompts, no headaches.</p><h3>🛡️ Secure Your Configs</h3><pre>chmod 600 ~/.github_tokens ~/.github_accounts ~/.git-credentials</pre><p>And ignore them globally:</p><pre>echo ~/.github_tokens &gt;&gt; ~/.gitignore_global<br>echo ~/.github_accounts &gt;&gt; ~/.gitignore_global<br>echo ~/.git-credentials &gt;&gt; ~/.gitignore_global<br>git config --global core.excludesFile ~/.gitignore_global</pre><h3>💻 Compatible With</h3><p>✅ Works With ❌ Not Yet Supported Public/Private GitHub repos GitHub Enterprise (self-hosted) Customer-owned GitHub orgs SSH remotes (git@...) Git Bash (Windows), Linux, macOS Token auto-refresh</p><h3>📦 Use Cases</h3><ul><li>Contractors switching between clients</li><li>Devs with OSS + work projects</li><li>GitHub org members contributing to private repos</li><li>Engineering leaders reviewing across contexts</li></ul><h3>💡 Pro Tips</h3><ul><li>Want auto-switching per repo? You can extend this script with per-project .git/config overrides</li><li>Want SSH support? Stay tuned — that’s coming in a future version</li><li>Clone this repo into a safe path (e.g., ~/dotfiles/git-switch/) and alias it</li></ul><h3>🔗 Resources</h3><ul><li>🔧 GitHub PAT docs: <a href="https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token">Creating a personal access token</a></li><li>📦 Tool Repo: <a href="https://github.com/jivansupe/git-account-switch">https://github.com/jivansupe/git-account-switch</a></li><li>📖 Original Article: <a href="https://medium.com/@jivansupe/master-multi-account-git-switching-in-minutes-boost-your-development-efficiency-073385b75d4c">v1 on Medium</a></li></ul><h3>🧑‍💻 Final Words</h3><p>This version fixes the mess that Git multi-account workflows often become.</p><p>No more guessing who you’re committing as.<br>No more typing tokens into popups.<br>No more errors when pushing to a customer repo.</p><p>Just clean, <strong>instant Git identity switching</strong>.</p><h3>⭐️ If you find this helpful…</h3><ul><li>Share it with your team</li><li>Star the repo</li><li>Leave a comment — I’d love feedback!</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c558c1d20f76" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Master Multi-Account Git Switching in Minutes: Boost Your Development Efficiency]]></title>
            <link>https://medium.com/@jivansupe/master-multi-account-git-switching-in-minutes-boost-your-development-efficiency-073385b75d4c?source=rss-32e9ad8a4576------2</link>
            <guid isPermaLink="false">https://medium.com/p/073385b75d4c</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[devops-tool]]></category>
            <category><![CDATA[gitlab]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[devops-practice]]></category>
            <dc:creator><![CDATA[Jivan Supe]]></dc:creator>
            <pubDate>Tue, 11 Mar 2025 08:27:43 GMT</pubDate>
            <atom:updated>2025-03-11T08:27:43.217Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0EV9Skbhp02hlqbOuGgUDA.jpeg" /></figure><h3>Facing Git Account Switching Hassles?</h3><p>Ever pushed code to the wrong repository by mistake? Or found yourself repeatedly fixing credential errors while switching between GitHub and GitLab accounts? You’re not alone. Development teams can lose <strong>2–3 hours per developer every month</strong> due to manual Git identity switching.</p><p>But there’s a solution! Let’s explore how you can automate account switching with a simple yet powerful script — <strong>saving you time, reducing errors, and improving your workflow.</strong></p><h3>Why Traditional Git Switching Wastes Time</h3><p>Manual switching often requires you to:</p><ul><li>Constantly update global Git username and email settings</li><li>Manage SSH keys in the agent</li><li>Manually adjust repository remote URLs</li></ul><p>This multi-step process is prone to errors and can slow your development momentum.</p><h3>Introducing the Automated SSH Key Switcher</h3><p>Our <strong>SSH Key Switcher Script</strong> simplifies this process. With just one command, you can switch between GitHub and GitLab accounts without manual intervention — ensuring every commit is correctly attributed.</p><h3>🚀 Key Benefits:</h3><p>✅ Saves 2–3 hours per developer monthly<br> ✅ Reduces authentication issues by 90%<br> ✅ Provides clear visual confirmation of active accounts<br> ✅ Easy onboarding for new developers</p><h3>😢Real-World Use Cases</h3><p>This solution is particularly valuable for:</p><ul><li><strong>Freelancers and consultants</strong> managing multiple client repositories</li><li><strong>Cross-functional teams</strong> contributing to diverse projects</li><li><strong>DevOps engineers</strong> handling deployments across environments</li><li><strong>Agencies</strong> switching between client GitHub and GitLab accounts</li></ul><h3>🪜Step-by-Step Guide to Setup</h3><h4>1️⃣ Generate Dedicated SSH Keys</h4><p>For GitHub:</p><pre>ssh-keygen -t ed25519 -C &quot;team.github@organization.com&quot; -f ~/.ssh/id_ed25519_github</pre><p>For GitLab:</p><pre>ssh-keygen -t ed25519 -C &quot;team.gitlab@organization.com&quot; -f ~/.ssh/id_ed25519_gitlab</pre><h4>2️⃣ Add Keys to Respective Platforms</h4><ul><li><strong>GitHub:</strong> Settings &gt; SSH and GPG Keys &gt; New SSH Key</li><li><strong>GitLab:</strong> Preferences &gt; SSH Keys &gt; Add SSH Key</li></ul><h4>3️⃣ Configure SSH Settings</h4><p>Add these entries to your ~/.ssh/config file:</p><pre>Host github.com<br>  HostName github.com<br>  User git<br>  IdentityFile ~/.ssh/id_ed25519_github<br><br>Host gitlab.com<br>  HostName gitlab.com<br>  User git<br>  IdentityFile ~/.ssh/id_ed25519_gitlab</pre><h4>4️⃣ Create the Account Switcher Script</h4><p>Create a file named <em>switch_git_account.sh</em> with this content:</p><pre>#!/bin/bash<br><br>GREEN=&#39;\033[0;32m&#39;<br>BLUE=&#39;\033[0;34m&#39;<br>NC=&#39;\033[0m&#39; # No Color<br><br>GITHUB_USER=&quot;org_github_username&quot;<br>GITHUB_EMAIL=&quot;team.github@organization.com&quot;<br>GITHUB_SSH_KEY=&quot;~/.ssh/id_ed25519_github&quot;<br><br>GITLAB_USER=&quot;org_gitlab_username&quot;<br>GITLAB_EMAIL=&quot;team.gitlab@organization.com&quot;<br>GITLAB_SSH_KEY=&quot;~/.ssh/id_ed25519_gitlab&quot;<br><br>show_current_config() {<br>    echo -e &quot;\n${BLUE}Current Git Configuration:${NC}&quot;<br>    echo &quot;User: $(git config --global user.name)&quot;<br>    echo &quot;Email: $(git config --global user.email)&quot;<br>    echo -e &quot;Active SSH keys: $(ssh-add -l | wc -l)\n&quot;<br>}<br><br>if [ &quot;$1&quot; == &quot;github&quot; ]; then<br>    ssh-add -D<br>    ssh-add $GITHUB_SSH_KEY<br>    git config --global user.name &quot;$GITHUB_USER&quot;<br>    git config --global user.email &quot;$GITHUB_EMAIL&quot;<br>    echo -e &quot;${GREEN}✓ Switched to GitHub Account: $GITHUB_USER${NC}&quot;<br>    show_current_config<br><br>elif [ &quot;$1&quot; == &quot;gitlab&quot; ]; then<br>    ssh-add -D<br>    ssh-add $GITLAB_SSH_KEY<br>    git config --global user.name &quot;$GITLAB_USER&quot;<br>    git config --global user.email &quot;$GITLAB_EMAIL&quot;<br>    echo -e &quot;${GREEN}✓ Switched to GitLab Account: $GITLAB_USER${NC}&quot;<br>    show_current_config<br>else<br>    echo &quot;Usage: ./switch_git_account.sh [github|gitlab]&quot;<br>    show_current_config<br>fi</pre><p>Make it executable:</p><pre>chmod +x switch_git_account.sh</pre><h4>5️⃣ Optimize for Team Use</h4><p>To simplify usage across teams:</p><pre>mv switch_git_account.sh /path/to/team/scripts/<br><br>echo &#39;alias github-switch=&quot;/path/to/team/scripts/switch_git_account.sh github&quot;&#39; &gt;&gt; ~/.bashrc<br>echo &#39;alias gitlab-switch=&quot;/path/to/team/scripts/switch_git_account.sh gitlab&quot;&#39; &gt;&gt; ~/.bashrc</pre><h3>‍💻Implementation in Your Workflow</h3><p>Switch accounts easily using:</p><pre>./switch_git_account.sh github</pre><p>Or with the alias:</p><pre>github-switch</pre><p>You’ll see:</p><pre>✓ Switched to GitHub Account: org_github_username<br><br>Current Git Configuration:<br>User: org_github_username<br>Email: team.github@organization.com<br>Active SSH keys: 1</pre><h3>💬Common Issues and Troubleshooting</h3><p><strong>1. “Permission denied” errors:</strong></p><ul><li>Confirm public key is added to the platform</li><li>Set permissions: <strong>chmod 600 ~/.ssh/id_ed25519_*</strong></li><li>Reload keys: <strong>ssh-add ~/.ssh/id_ed25519_github</strong></li></ul><p><strong>2. Keys not persisting between sessions:<br></strong> Add this to your <strong>.bashrc</strong> or <strong>.zshrc</strong> file:</p><pre>if [ -z &quot;$SSH_AUTH_SOCK&quot; ]; then<br>  eval `ssh-agent -s`<br>fi</pre><h3>💫Advanced Tips for Power Users</h3><ul><li><strong>Auto-switching by project type:</strong> Add logic to your script to detect project types and switch accounts automatically.</li><li><strong>Per-repository configurations:</strong> Use <strong>.git/config</strong> for localized settings.</li><li><strong>CI/CD integration:</strong> Extend the script to streamline deployment pipelines.</li></ul><h3>👏🏼Conclusion</h3><p>Implementing this SSH key switching solution requires minimal setup time — about <strong>15–20 minutes</strong> — but provides immense time savings and smoother development workflows.</p><h3>🚨 Don’t let credential errors slow you down. Automate your Git account switching today!</h3><p><em>This guide was prepared by the DevOps Engineering team to help developers simplify their Git workflows. Got feedback? We’d love to hear from you!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=073385b75d4c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Debugging: Turning Mysteries into Masterpieces! ]]></title>
            <link>https://medium.com/@jivansupe/debugging-turning-mysteries-into-masterpieces-6ac837235839?source=rss-32e9ad8a4576------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ac837235839</guid>
            <category><![CDATA[strategy]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[debug-strategy]]></category>
            <category><![CDATA[debugging-techniques]]></category>
            <category><![CDATA[debugging]]></category>
            <dc:creator><![CDATA[Jivan Supe]]></dc:creator>
            <pubDate>Fri, 21 Feb 2025 14:31:52 GMT</pubDate>
            <atom:updated>2025-02-21T14:31:52.378Z</atom:updated>
            <content:encoded><![CDATA[<p>Debugging. The word itself might conjure images of late nights, frantic keyboard pounding, and copious amounts of caffeine. But at its heart, debugging isn’t just about fixing code; it’s about problem-solving, critical thinking, and the satisfaction of making things work. Think of it as detective work for the digital (or even analog!) world.</p><h3>The Debugging Mindset: Channel Your Inner Sherlock</h3><p>Great debuggers share a common set of traits. They approach problems with curiosity, patience, and a healthy dose of skepticism. Forget jumping to conclusions! Instead, embrace a systematic approach, follow the clues, and test your theories methodically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*VT6vhwNW855LzExl" /></figure><h4>Key Traits of a Good Debugger:</h4><p>🔍 <strong>Curiosity:</strong> Always ask <em>“Why isn’t this working?”</em> Dig deeper than the surface level.<br>⏳ <strong>Patience:</strong> Some bugs are quick fixes; others require time and persistence. Don’t get discouraged!<br>🧠 <strong>Logical Thinking:</strong> Break down complex problems into smaller, manageable parts.<br>👀 <strong>Attention to Detail:</strong> A missing semicolon or a misspelled variable can break everything.<br>🔥 <strong>Persistence:</strong> If your first solution doesn’t work, try a different approach. Iterate!<br>💡 <strong>Ownership:</strong> <em>“Wars are often fought over the ownership of land.”</em> Similarly, a great debugger takes full responsibility for tracking and resolving issues instead of passing them along.</p><h3>Debugging Like a Pro: A Step-by-Step Guide to Fixing Bugs</h3><p>So, how do you actually debug? Here’s a structured approach to help you navigate the process:</p><h4>1️⃣ Reproduce the Problem</h4><p>If you can’t reliably recreate the issue, you can’t effectively fix it. Identify the conditions that trigger the bug.<br><strong>Example:</strong> If your app crashes randomly, check if it happens when uploading a large file or using a particular feature.</p><h4>2️⃣ Isolate the Issue</h4><p>Eliminate unnecessary variables to pinpoint the root cause.<br><strong>Example: </strong>If a website is slow, test whether it’s due to large images, inefficient code, or server overload.</p><h4>3️⃣ Gather Clues (Logs &amp; Errors)</h4><p>Error messages, system logs, and debugging tools are your best friends. Learn to interpret them.<br><strong>Example:</strong> A database query failure with the message “<em>Syntax error near</em> ‘<em>WHERE</em>’” suggests an issue with SQL syntax.</p><h4>4️⃣ Test Your Theories</h4><p>Formulate a hypothesis about the cause and design tests to validate it.<br><strong>Example: </strong>If a web page loads slowly, temporarily remove images to check if they are the bottleneck.</p><h4>5️⃣ Divide &amp; Conquer</h4><p>Break the system into smaller, independent modules and test them separately.<br><strong>Example:</strong> Insert log statements at different points to narrow down where a program fails.</p><h4>6️⃣ Explain It Out Loud (Rubber Duck Debugging)</h4><p>Describing the problem to someone (or even an inanimate object) often reveals overlooked assumptions.<br><strong>Example:</strong> A developer explaining their code to a colleague realizes they forgot to handle a null value.</p><h4>7️⃣ Take a Break</h4><p>A fresh perspective can often lead to <em>“Aha!”</em> moments.<br><strong>Example:</strong> Many programmers find solutions while walking, showering, or even sleeping. Let your subconscious work on it!</p><h3>Common Debugging Pitfalls (and How to Avoid Them!)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*E7wp3s1LW9-fuf0Y" /></figure><p>🚫 <strong>Making Assumptions:</strong> Always verify; don’t guess!<br>🚫 <strong>Skipping Reproduction Steps:</strong> Fully understand how the bug occurs.<br>🚫 <strong>Fixing Symptoms, Not Causes:</strong> Address the root issue, not just the surface-level problem.<br>🚫 <strong>Ignoring Edge Cases:</strong> Bugs often hide in unusual conditions (large inputs, low memory, specific browsers).<br>🚫 <strong>Not Using Debugging Tools:</strong> Debuggers, logging frameworks, and testing tools exist for a reason — use them!</p><h3>Debugging in the Real World: Beyond Software</h3><p>Debugging skills apply to real-world scenarios too! Here are some non-tech examples:</p><p>✅ <strong>Factory Malfunction:</strong> A conveyor belt stops. Logs reveal overheating due to excessive load. <strong>Fix:</strong> Adjust cooling and recalibrate sensors.<br>✅ <strong>Self-Driving Vacuum Issue:</strong> A smart vacuum keeps bumping into walls. Turns out, a glass coffee table confuses its sensors. <strong>Fix:</strong> Update the navigation algorithm.<br>✅ <strong>Slow Restaurant Service:</strong> Delays happen every Friday. Analysis reveals a shared grill bottleneck. <strong>Fix:</strong> Adjust the menu to optimize kitchen efficiency.<br>✅ <strong>Relationship Conflicts:</strong> A couple argues monthly. Tracking patterns shows financial stress before bill payments. <strong>Fix:</strong> Discuss budgeting earlier in the month.</p><h3>The Joy of the “Aha!” Moment</h3><p>Debugging can be frustrating, but solving a tough bug is incredibly rewarding. It’s like cracking a puzzle or uncovering a hidden mystery.</p><p>Every bug has a breaking point. With logic, patience, and the right approach, you can always find and fix the problem. So, the next time something isn’t working, don’t panic — debug it! 🔍💡</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*7i-UB8rfqufkj5A8" /></figure><h3>What’s Your Favorite Debugging Trick?</h3><p>Do you have a go-to debugging method or a memorable bug-fixing story? Drop it in the comments below! If you found this helpful, hit 👏 and share it with fellow developers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ac837235839" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>