You write code all day. You ship every week. And your GitHub contribution graph looks like you stopped programming years ago.
The reason is simple: your work doesn’t happen on github.com. 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.
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.
I built greenbridge (command: gbridge) 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.
First, check whether you need this
GitHub already covers two setups. Skip gbridge if either applies:
- Your employer’s code is in an organization on github.com. GitHub already counts those commits. For private repos, turn on Include private contributions on my profile at
https://github.com/settings/profile, and make sure your work email is on your GitHub account. - Your employer runs GitHub Enterprise Server with unified contributions. An enterprise owner enables it, you link your accounts, and GitHub sends anonymized contribution counts to your github.com graph. Ask your administrator.
If neither applies, gbridge 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 git clone from. Whether you want to show GitLab contributions on GitHub or get Bitbucket commits on your GitHub profile, it's the same few commands.
How it works
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.
gbridge reads commit metadata from your local git clones instead. It shells out to git, calls no host API, and needs no host token. On the GitHub side it uses the GitHub CLI you are already logged into.
For each commit you authored (matched by your work email), gbridge writes one empty, backdated commit to a private mirror repo you own on GitHub, greenbridge-activity by default. GitHub counts an empty commit like any other, so a green square appears on the day you did the work.
A few details that matter in practice:
- Repos that already have a github.com remote are skipped, since GitHub counts them already.
- Reruns are safe. 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.
- History rewrites don’t inflate the graph. 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.
- Past work comes along. The first sync goes as far back as your clones go.
What leaves your machine
For every source commit, exactly two things leave your machine:
- A timestamp: exact for a private mirror, date only for a public one.
- An opaque 12-character ID:
HMAC(secret, email NUL author_unix_time), a keyed hash of your email and the commit's author time.
Your code, diffs, file names, commit messages, repo and branch names, commit hashes, and work email stay local.
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 gbridge secret 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: gbridge init --secret <phrase>.
The honesty line
gbridge follows one rule: mirror real commits one to one, at the time you wrote them.
It has no gap filling, no streak padding, and no way to paint patterns. Tools that fabricate activity break GitHub’s acceptable use policy on inauthentic activity. gbridge is designed to stay on the right side of it.
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. gbridge init shows the same notice before it sets anything up.
Real numbers from my own graph
Here is my own GitHub account, last 12 months to 2026–11–02. gbridge mirrored 2,292 commits from non-GitHub hosts, from 2026-09-09 on.
| Before | After gbridge sync | |
|---|---|---|
| Contributions, 12 months | 6,994 | 9,268 (+33%) |
| Contributions, last 9 weeks | 1,799 | 4,073 (2.3x) |
| Active days, last 9 weeks | 57 of 63 | 63 of 63 |
| Longest streak | 82 days | 95 days |
Every added square is a commit I wrote, on the day I wrote it.

Illustration with sample data, not my account.
Install
You need git and the GitHub CLI, logged in with gh auth login. Pick one:
# 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 There is also a Homebrew cask, brew install sorfeb/tap/gbridge, which I haven't verified on a Mac yet. Release archives for Linux, macOS, and Windows (amd64 and arm64) are on the Releases page. 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 gh attestation verify.
The command is gbridge, not gb: oh-my-zsh and prezto alias gb to git branch.
Four commands to get your work on your graph
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 --scan names a folder gbridge searches for repos on every run, so a repo you clone next month counts without another setup step.
gbridge plan writes nothing. It prints counts per year and a terminal contribution graph, so you see what will be mirrored before anything reaches GitHub.
For a private mirror, turn on Include private contributions on my profile at https://github.com/settings/profile. No GitHub API exposes that setting, so gbridge doctor 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, gbridge doctor 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.
Sync on every push
gbridge hook install This adds a pre-push hook: every git push 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, gbridge hook install --per-repo writes the hook into each source repo's .git/hooks instead. gbridge hook status and gbridge hook uninstall do what they say.
Known limits
I’d rather you hear these from me:
- Clones only. Commits that never reached a local clone are invisible. Run
git fetch --allbefore syncing. - Commits only. Pull requests, issues, and reviews are not mirrored.
- Removal is manual. Sync only adds. Removing mirrored commits means rebuilding the mirror and force-pushing it.
- One mirror per config. Splitting activity per employer isn’t supported yet.
- Same-second commits collapse. Two commits by one email in the same second count once.
Other open-source tools solve the same problem with different trade-offs. The README has a comparison table, including where they do better.
Try it without writing anything
If your GitHub contribution graph hides your private work commits, run gbridge plan first. It writes nothing and shows what your graph is missing.
The code, install options, and docs are at github.com/sorfeb/greenbridge. If it’s useful, star the repo. If something breaks or a host behaves differently, open an issue.
Originally published at sorosfebria.co.








