<?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[Soros Febriano]]></title><description><![CDATA[Soros Febriano]]></description><link>https://sorfeb.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 22:50:03 GMT</lastBuildDate><atom:link href="https://sorfeb.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Busy at work, empty on GitHub: show your work commits on your contribution graph]]></title><description><![CDATA[You code all day, but your GitHub graph is nearly blank because your work lives somewhere GitHub can't see. A small CLI mirrors your real commits there as…]]></description><link>https://sorfeb.hashnode.dev/busy-at-work-empty-on-github</link><guid isPermaLink="true">https://sorfeb.hashnode.dev/busy-at-work-empty-on-github</guid><category><![CDATA[GitHub]]></category><category><![CDATA[Git]]></category><category><![CDATA[Open Source]]></category><category><![CDATA[Career]]></category><category><![CDATA[Developer Tools]]></category><dc:creator><![CDATA[Soros Febriano]]></dc:creator><pubDate>Thu, 26 Nov 2026 16:13:41 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6b07181dd0df86cb26efaeda/1449e254-bc3e-496d-b57f-ae8e58a4dbc4.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>You write code all day. You ship every week. And your GitHub contribution graph looks like you stopped programming years ago.</p>
<p>The reason is simple: your work doesn’t happen on <a href="http://github.com">github.com</a>. It lives on your employer’s GitLab or Bitbucket, a self-hosted Gitea or Forgejo, an on-prem git server, or GitHub Enterprise Server. By the evening there’s no time left for side projects, so the graph stays gray. Then a recruiter or hiring manager opens your profile and sees almost nothing.</p>
<p>GitHub counts a commit only when it sits on the default branch of a non-fork repo that GitHub hosts, and its author email belongs to your account. Work anywhere else never reaches it, no matter how much of it there is.</p>
<p>I built <a href="https://github.com/sorfeb/greenbridge">greenbridge</a> (command: <code>gbridge</code>) so the work you already do shows up on your GitHub graph, wherever it's hosted, without uploading code, commit messages, or host tokens. It is a single Go binary under the MIT license. v0.1.0 shipped in November 2026. It is a young project with one maintainer, and it does one job: mirror commits you already wrote onto your GitHub graph.</p>
<h2>First, check whether you need this</h2>
<img src="https://cdn-images-1.medium.com/max/2000/1*dWclTfxzSx61c-SijpXTEw.png" alt="A signpost: code on github.com is already counted; code anywhere else points to gbridge." style="display:block;margin:0 auto" />

<p>GitHub already covers two setups. Skip <code>gbridge</code> if either applies:</p>
<ul>
<li><strong>Your employer’s code is in an organization on</strong> <a href="http://github.com"><strong>github.com</strong></a><strong>.</strong> GitHub already counts those commits. For private repos, turn on <strong>Include private contributions on my profile</strong> at <code>https://github.com/settings/profile</code>, and make sure your work email is on your GitHub account.</li>
<li><strong>Your employer runs GitHub Enterprise Server with unified contributions.</strong> An enterprise owner enables it, you link your accounts, and GitHub sends anonymized contribution counts to your <a href="http://github.com">github.com</a> graph. Ask your administrator.</li>
</ul>
<p>If neither applies, <code>gbridge</code> is for you. The host doesn't matter: GitLab, Bitbucket Cloud and Server, Gitea, Forgejo, Codeberg, GitHub Enterprise Server without unified contributions, or any server you can <code>git clone</code> from. Whether you want to show GitLab contributions on GitHub or get Bitbucket commits on your GitHub profile, it's the same few commands.</p>
<h2>How it works</h2>
<img src="https://cdn-images-1.medium.com/max/2000/1*LplHFu-wRt9kohuMlV8aqw.gif" alt="Commit squares cross a suspension bridge from a private forge to a GitHub contribution graph" style="display:block;margin:0 auto" />

<p>Some tools in this space read your commits through one host’s API (GitLab or Gitea, say), which means one tool per host and a token for each. I did not want a personal tool holding a token for an employer server.</p>
<p><code>gbridge</code> reads commit metadata from your local git clones instead. It shells out to <code>git</code>, calls no host API, and needs no host token. On the GitHub side it uses the GitHub CLI you are already logged into.</p>
<p>For each commit you authored (matched by your work email), <code>gbridge</code> writes one empty, backdated commit to a private mirror repo you own on GitHub, <code>greenbridge-activity</code> by default. GitHub counts an empty commit like any other, so a green square appears on the day you did the work.</p>
<p>A few details that matter in practice:</p>
<ul>
<li><strong>Repos that already have a</strong> <a href="http://github.com"><strong>github.com</strong></a> <strong>remote are skipped,</strong> since GitHub counts them already.</li>
<li><strong>Reruns are safe.</strong> There is no state file. Every run reads the IDs of already-mirrored commits back from the mirror repo’s own git log and adds only what is missing.</li>
<li><strong>History rewrites don’t inflate the graph.</strong> A rebased, cherry-picked, or amended commit keeps its author email and author date, so it maps to the same ID and counts once. I tested all three.</li>
<li><strong>Past work comes along.</strong> The first sync goes as far back as your clones go.</li>
</ul>
<h2>What leaves your machine</h2>
<img src="https://cdn-images-1.medium.com/max/2000/1*E8vVSYuo624HDbyh2OUQAw.png" alt="A sieve: code, diffs, messages, and names stay on top; only a timestamp and an ID fall through to the graph." style="display:block;margin:0 auto" />

<p>For every source commit, exactly two things leave your machine:</p>
<ol>
<li>A timestamp: exact for a private mirror, date only for a public one.</li>
<li>An opaque 12-character ID: <code>HMAC(secret, email NUL author_unix_time)</code>, a keyed hash of your email and the commit's author time.</li>
</ol>
<p>Your code, diffs, file names, commit messages, repo and branch names, commit hashes, and work email stay local.</p>
<p>Because the ID is keyed with a secret that never leaves your machine, nobody can match a mirror commit back to a source commit without it, including people with access to the source repo. Run <code>gbridge secret</code> to print a recovery phrase and back it up. Losing it means the next sync can't recognize what is already mirrored, and your work double counts. The same phrase sets up a second machine: <code>gbridge init --secret &lt;phrase&gt;</code>.</p>
<h2>The honesty line</h2>
<img src="https://cdn-images-1.medium.com/max/2000/1*Z8-GI73CdBPDNzv0ZoI_VA.png" alt="A level balance: three commits you wrote on one side, three green squares on the same days on the other." style="display:block;margin:0 auto" />

<p><code>gbridge</code> follows one rule: mirror real commits one to one, at the time you wrote them.</p>
<p>It has no gap filling, no streak padding, and no way to paint patterns. Tools that fabricate activity break GitHub’s <a href="https://docs.github.com/en/site-policy/acceptable-use-policies/github-acceptable-use-policies#4-spam-and-inauthentic-activity-on-github">acceptable use policy on inauthentic activity</a>. <code>gbridge</code> is designed to stay on the right side of it.</p>
<p>Check your employment contract before you mirror employer work. Only timestamps and opaque IDs leave your machine, but some employers treat even timestamps as internal. <code>gbridge init</code> shows the same notice before it sets anything up.</p>
<h2>Real numbers from my own graph</h2>
<p>Here is my own GitHub account, last 12 months to 2026–11–02. <code>gbridge</code> mirrored 2,292 commits from non-GitHub hosts, from 2026-09-09 on.</p>
<table>
<thead>
<tr>
<th></th>
<th>Before</th>
<th>After gbridge sync</th>
</tr>
</thead>
<tbody><tr>
<td>Contributions, 12 months</td>
<td>6,994</td>
<td>9,268 (+33%)</td>
</tr>
<tr>
<td>Contributions, last 9 weeks</td>
<td>1,799</td>
<td>4,073 (2.3x)</td>
</tr>
<tr>
<td>Active days, last 9 weeks</td>
<td>57 of 63</td>
<td>63 of 63</td>
</tr>
<tr>
<td>Longest streak</td>
<td>82 days</td>
<td>95 days</td>
</tr>
</tbody></table>
<p>Every added square is a commit I wrote, on the day I wrote it.</p>
<img src="https://cdn-images-1.medium.com/max/2000/1*0hA5yJK5jaWU-LoLRkkIxw.png" alt="A contribution graph before and after gbridge sync: sparse personal activity, then a busy weekday pattern with a two-week holiday left empty. Illustrative sample data." style="display:block;margin:0 auto" />

<p><em>Illustration with sample data, not my account.</em></p>
<h2>Install</h2>
<img src="https://cdn-images-1.medium.com/max/2000/1*-SSmxW5RRMxBnfdC33cZVA.png" alt="An open box of green squares: install with scoop, brew, mise, or go install." style="display:block;margin:0 auto" />

<p>You need <code>git</code> and the <a href="https://cli.github.com">GitHub CLI</a>, logged in with <code>gh auth login</code>. Pick one:</p>
<pre><code class="language-sh"># Windows, Scoop
scoop bucket add sorfeb https://github.com/sorfeb/scoop-bucket
scoop install sorfeb/gbridge

# mise
mise use -g github:sorfeb/greenbridge

# Go 1.27+
go install github.com/sorfeb/greenbridge/cmd/gbridge@latest
</code></pre>
<p>There is also a Homebrew cask, <code>brew install sorfeb/tap/gbridge</code>, which I haven't verified on a Mac yet. Release archives for Linux, macOS, and Windows (amd64 and arm64) are on the <a href="https://github.com/sorfeb/greenbridge/releases">Releases page</a>. Release binaries aren't signed yet, so macOS and Windows warn on first run. Each release ships checksums, SBOMs, and a build provenance attestation you can check with <code>gh attestation verify</code>.</p>
<p>The command is <code>gbridge</code>, not <code>gb</code>: oh-my-zsh and prezto alias <code>gb</code> to <code>git branch</code>.</p>
<h2>Four commands to get your work on your graph</h2>
<img src="https://cdn-images-1.medium.com/max/2000/1*FL0WL2khGUJDfvYVt-4VUQ.png" alt="A terminal running init, plan, sync, and doctor, with a contribution graph preview." style="display:block;margin:0 auto" />

<pre><code class="language-sh">gbridge init --email you@work.com --scan ~/work   # private mirror repo; ~/work is searched on every run
gbridge plan                                      # preview, writes nothing
gbridge sync                                      # mirror and push; rerun any time
gbridge doctor                                    # explains missing squares
</code></pre>
<p><code>--scan</code> names a folder <code>gbridge</code> searches for repos on every run, so a repo you clone next month counts without another setup step.</p>
<p><code>gbridge plan</code> writes nothing. It prints counts per year and a terminal contribution graph, so you see what will be mirrored before anything reaches GitHub.</p>
<p>For a private mirror, turn on <strong>Include private contributions on my profile</strong> at <code>https://github.com/settings/profile</code>. No GitHub API exposes that setting, so <code>gbridge doctor</code> reports it as unverified rather than guessing. The graph can take up to 24 hours to update after a push. If squares are still missing, <code>gbridge doctor</code> checks each condition GitHub needs. It also finds commits under your name with an email you didn't configure, and suggests adding it, unless other authors use that address too.</p>
<h3>Sync on every push</h3>
<img src="https://cdn-images-1.medium.com/max/2000/1*0eqEDqr02ZyYbIVAaBw3WQ.png" alt="A git push cart sends squares rolling into a graph: background sync on every push." style="display:block;margin:0 auto" />

<pre><code class="language-sh">gbridge hook install
</code></pre>
<p>This adds a pre-push hook: every <code>git push</code> from a source repo starts a background sync. It never fails or slows the push, and its output goes to a log file. On Git 2.54 and later it lives in your global git config, so no repo's files change. On older Git, <code>gbridge hook install --per-repo</code> writes the hook into each source repo's <code>.git/hooks</code> instead. <code>gbridge hook status</code> and <code>gbridge hook uninstall</code> do what they say.</p>
<h2>Known limits</h2>
<img src="https://cdn-images-1.medium.com/max/2000/1*KKQZCAVTllHdIto4WuYLQg.png" alt="Two rain gauges: the forge heatmap catches comments, PRs, pushes, and commits; gbridge catches commits only." style="display:block;margin:0 auto" />

<p>I’d rather you hear these from me:</p>
<ul>
<li><strong>Clones only.</strong> Commits that never reached a local clone are invisible. Run <code>git fetch --all</code> before syncing.</li>
<li><strong>Commits only.</strong> Pull requests, issues, and reviews are not mirrored.</li>
<li><strong>Removal is manual.</strong> Sync only adds. Removing mirrored commits means rebuilding the mirror and force-pushing it.</li>
<li><strong>One mirror per config.</strong> Splitting activity per employer isn’t supported yet.</li>
<li><strong>Same-second commits collapse.</strong> Two commits by one email in the same second count once.</li>
</ul>
<p>Other open-source tools solve the same problem with different trade-offs. The README has a <a href="https://github.com/sorfeb/greenbridge#alternatives">comparison table</a>, including where they do better.</p>
<h2>Try it without writing anything</h2>
<img src="https://cdn-images-1.medium.com/max/2000/1*KmzjJ7f4TrsUPt7k7m57ZQ.png" alt="A magnifier over a contribution graph: gbridge plan previews and writes nothing." style="display:block;margin:0 auto" />

<p>If your GitHub contribution graph hides your private work commits, run <code>gbridge plan</code> first. It writes nothing and shows what your graph is missing.</p>
<p>The code, install options, and docs are at <a href="https://github.com/sorfeb/greenbridge">github.com/sorfeb/greenbridge</a>. If it’s useful, star the repo. If something breaks or a host behaves differently, open an issue.</p>
<hr />
<p><em>Originally published at</em> <a href="https://www.sorosfebria.co/blog/busy-at-work-empty-on-github"><em>sorosfebria.co</em></a><em>.</em></p>
]]></content:encoded></item></channel></rss>