<?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: Vova Laskarzhevskyy</title>
    <description>The latest articles on DEV Community by Vova Laskarzhevskyy (@voyager556321).</description>
    <link>https://dev.to/voyager556321</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%2F2522611%2F423fa95d-6cc6-4e06-8c44-da8de6774fa9.jpg</url>
      <title>DEV Community: Vova Laskarzhevskyy</title>
      <link>https://dev.to/voyager556321</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/voyager556321"/>
    <language>en</language>
    <item>
      <title>I accidentally committed as the wrong Git identity one too many times — so I built idctl</title>
      <dc:creator>Vova Laskarzhevskyy</dc:creator>
      <pubDate>Sat, 20 Jun 2026 13:05:59 +0000</pubDate>
      <link>https://dev.to/voyager556321/i-accidentally-committed-as-the-wrong-git-identity-one-too-many-times-so-i-built-idctl-998</link>
      <guid>https://dev.to/voyager556321/i-accidentally-committed-as-the-wrong-git-identity-one-too-many-times-so-i-built-idctl-998</guid>
      <description>&lt;h1&gt;
  
  
  I committed with the wrong email — and had no way to see it coming
&lt;/h1&gt;

&lt;p&gt;You know that moment when someone points out your commit was made under the wrong email?&lt;/p&gt;

&lt;p&gt;Yeah. That happened to me. During a code review. On a work project.&lt;/p&gt;

&lt;p&gt;My personal email ended up in the commit history. On production code. In front of other engineers.&lt;/p&gt;

&lt;p&gt;The frustrating part is that I didn't even notice it happening.&lt;/p&gt;

&lt;p&gt;Earlier that day I had switched from a personal project. The wrong SSH key was still loaded. The wrong identity was still active. Git just used whatever was available.&lt;/p&gt;

&lt;h2&gt;
  
  
  The debug session that didn't help
&lt;/h2&gt;

&lt;p&gt;So I tried to figure out what was going on:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git config user.email
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="nv"&gt;$AWS_PROFILE&lt;/span&gt;
kubectl config current-context
ssh-add &lt;span class="nt"&gt;-l&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Four different systems. Four different sources of truth. None of them actually told me what identity would be used at the moment of impact.&lt;/p&gt;

&lt;p&gt;That was the real problem.&lt;/p&gt;

&lt;p&gt;Not that I misconfigured something — but that I had no way to predict what the system would actually do when I ran a command.&lt;/p&gt;

&lt;h2&gt;
  
  
  Config vs. resolution
&lt;/h2&gt;

&lt;p&gt;Over a weekend I built something around a simple question:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What identity will actually be used if I run this command right now?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Not "what did I configure?" — &lt;strong&gt;what will happen.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That distinction turned out to matter more than I expected. Most failures in these systems don't come from wrong config. They come from the wrong &lt;strong&gt;active context&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What &lt;code&gt;idctl predict&lt;/code&gt; shows
&lt;/h2&gt;

&lt;p&gt;The command I use most:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;idctl predict
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;NEXT ACTION RISKS  (vs profile: work)

!  git push        ssh key for github.com
    expected key ~/.ssh/id_personal is NOT loaded
    a different key may be used for authentication

!  ssh connect     5 key(s) in agent
    expected identity is not active
    another credential may be selected
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's not telling you what you configured. It's telling you what will actually happen.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjrqkwml80jvw2sqtxbku.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjrqkwml80jvw2sqtxbku.png" alt="idctl predict output showing git push and ssh connect identity mismatches" width="799" height="268"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Zero dependencies. Single static binary. Read-only — it never touches your git, AWS, kube, or SSH configuration.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;go &lt;span class="nb"&gt;install &lt;/span&gt;github.com/voyager556321/idctl/cmd/idctl@latest
idctl init
idctl predict
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Source and docs: &lt;a href="https://github.com/voyager556321/idctl" rel="noopener noreferrer"&gt;github.com/voyager556321/idctl&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Has this ever happened to you — wrong Git identity, wrong AWS account, wrong kube context? Or do you just mentally track all of it and hope nothing leaks across boundaries?&lt;/p&gt;

</description>
      <category>go</category>
      <category>cli</category>
      <category>git</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
