This project is a Node.js script that allows you to create multiple Git commits with randomized dates within a specified date range. It's useful for testing or simulating Git activity patterns.
- Create multiple Git commits with randomized dates
- Specify a custom date range for commits
- Configurable number of commits to generate
- Make your profile look active like you've been hard at work 😁
Before you begin, ensure you have met the following requirements:
- Node.js installed (version 12 or higher recommended)
- Git installed and configured on your system
- A GitHub account and a repository to test with
-
Get this repository from github to your computer
-
Navigate to the project directory:
cd git-commit-abuser -
Install the required dependencies:
npm install
To use this script, follow these steps:
-
Open the
index.jsfile in your preferred text editor. -
Modify the following variables at the bottom of the file:
const startDate = "YYYY-MM-DD"; // Change this to your desired start date const endDate = moment().format("YYYY-MM-DD"); // Change this to your desired end date (default is today) const numberOfCommits = xx; // Change this to the number of commits you want
Replace
"YYYY-MM-DD"with your desired start date, andxxwith the number of commits you want to generate. -
Save the changes to
index.js. -
Run the script using Node.js:
node index.js -
The script will create the specified number of commits with randomized dates between the start and end dates you provided.
-
After the script finishes, it will automatically push the commits to your remote repository.
- This script modifies your Git history and pushes changes to your remote repository. Use it with caution and only on repositories where it's safe to do so.
- The script updates and commits changes to a file named
data.jsonin your project directory. - Ensure you have the necessary permissions to push to the remote repository.