A playful Node.js script to automate random git commits with custom dates, inspired by the "contribution graph" effect.
This project generates a series of git commits with randomized dates over the past year, creating a pattern on your GitHub contributions graph. It uses jsonfile to write a date to a JSON file, moment for date manipulation, random for randomization, and simple-git to automate git commands.
-
Install dependencies:
npm install
-
Run the script:
node index.js
This will create 100 random commits spread over the past year.
index.js- Main script to generate commits.data.json- Temporary file used for commit content.package.json- Project metadata and dependencies..gitignore- Standard Node.js ignores.LICENSE- MIT License.
This project is for educational and entertainment purposes only. Please use responsibly and do not abuse automated commit generation.
MIT © 2024 Harsh Mehta