- Use this repo as a template to create a new repo, and provide a name.
- Clone your new repo locally.
cd
into the newly created directory. - It requires NodeJS and
npm
(oryarn
) to be installed on your machine. Runnpm i
oryarn install
in your terminal. - Use
npm start
oryarn start
in order to trigger a series of terminal prompts that will help with configuration.On Windows, please run it from Git Bash.
If you change your mind about these commits later, you can delete the repository and they'll disappear from your contribution graph.
Key | Description | Default value |
---|---|---|
username |
The username whose graph contributions you'd like to copy. | |
year |
Year that you would like to sync with provided username . Currently doesn't support multiple years. |
Current year |
execute |
Let's the code know whether to simply generate script.sh that, when executed, will force push commits to main . Or to both generate and execute at once. |
false , in other words generate without execution |
confirm |
A quick double check that you're ready to proceed. |
Explore the code! It's tiny and there aren't many dependencies.
It only scrapes publicly available data from existing GitHub contribution graphs. It does not have access to private commits or issues created. So I can promise that you will not get in trouble for syncing your personal and work GitHub graphs considering there isn't any private company code being exposed!
There's a lot of potential features and automations that could be added! Something as basic as accepting multiple years to pull at once, or more complicated like having a GitHub Action that once per month/year/time period creates a PR with newer commits, making it effortless to keep them synced.
PRs are welcome! One day I'll probably write a Contributing guide. This project is MIT licensed.