Private Work Contributions Mirror addresses the challenge of empty squares on GitHub profiles by allowing users to reflect their actual activity from private repositories. This script securely records commit timestamps without exposing any code, ensuring that your contributions are visible while maintaining privacy.
Mirror commit timestamps from private work repositories to your GitHub contribution graph without exposing any code. This innovative solution addresses the common issue faced by developers working on private projects, where empty squares dominate their GitHub profiles, leaving recruiters, collaborators, and the open-source community unaware of their actual contributions.
Developers contribute significantly to private repositories, but their GitHub activity often appears flat. The public contribution graph lacks visibility, which can affect professional opportunities and collaboration.
This project provides a script to mirror work activity to a public repository while maintaining privacy. By only transferring commit timestamps, it allows users to reflect their actual work effort on their profiles without compromising the confidentiality of the code.
Before After
┌────────────────────────┐ ┌────────────────────────┐
│ ░░░░░░░░░░░░░░░░░░░░░░ │ │ ░█░██░█░░█░██░█░░█░██░ │
│ ░░░░░░░░░░░░░░░░░░░░░░ │ → │ ░█░██░█░░█░██░█░░█░██░ │
│ ░░░░░░░░░░░░░░░░░░░░░░ │ │ ░█░██░█░░█░██░█░░█░██░ │
└────────────────────────┘ └────────────────────────┘
Private work invisible Real activity visible
The setup requires a few environment variables to be defined:
export WORK_DIR="$HOME/work" # Directory with your work repos
export MIRROR_DIR="$HOME/mirror" # Mirror repo from Step 2
export EMAILS="you@company.com,personal@gmail.com" # Your git email(s)
export REMOTE_PREFIX="git@github.com:your-company/" # Only sync repos matching this
Is any code exposed? No, only timestamps are mirrored; the commits are void of actual content.
Can contributions be backfilled? Yes, adjust the configuration to reflect contributions from earlier dates.
Will this affect my private repos? No modifications are made to the working directories of private repositories.
For a comprehensive guide on setup and troubleshooting, please refer to the project's README file.
No comments yet.
Sign in to be the first to comment.