This script automatically creates random Git commits for every day from a custom start date up to today.
Great for filling your GitHub contribution graph for fun or testing!
- Custom start date
- Custom number of commits per day (min to max)
- Randomized commit times
- Automatically pushes to
main
branch
- Node.js installed
- Git repository initialized
- Clone or create a Git repository.
- Add this script (
script.js
) to your repo. - Run it like this:
node script.js <start-date> <min-commits> <max-commits>
node script.js 2024-01-01 3 7
This will:
Start from Jan 1, 2024
Generate between 3 to 7 commits per day
End at today's date