This project automates the process of creating multiple Git commits over a specified date range. It generates a single file with commit messages, commits the changes, and pushes them to a remote repository.
Example output from the GitHub Activity Generator
This project is intended for educational and demonstration purposes only. The automated creation of multiple Git commits may not reflect best practices in version control and should be used responsibly. Users are encouraged to understand the implications of mass commits in a collaborative environment and to adapt the script to fit their specific needs. The author, AshokShau, is not responsible for any unintended consequences resulting from the use of this tool.
- Author: AshokShau
- Purpose: To automate Git commits for testing or demonstration purposes.
- Language: Go
- Generates multiple commits for each day within a specified date range.
- Uses customizable commit messages and author information.
- Handles file creation and appending automatically.
- Pushes changes to the specified remote repository.
- Go installed on your machine.
- Git installed and configured with a remote repository.
- Ensure you have the necessary permissions to push changes to the repository.
git clone https://github.com/AshokShau/commit-generator.git
cd commit-generator
fileName
: Name of the file where commit messages will be stored.startDate
: The start date for generating commits (format: YYYY-MM-DD).endDate
: The end date for generating commits (format: YYYY-MM-DD).commitMessage
: The base message for the commits.commitsPerDay
: Number of commits to create per day.authorName
: Your name as it will appear in commits.authorEmail
: Your email as it will appear in commits.branchName
: The name of the branch to push changes to.
To run the program, execute:
go run main.go
or
python3 main.py
The program will create a file with commit messages, generate commits, and push the changes to the remote repository.
After the program completes, you can verify the commits in your Git repository:
git log
Contributions are welcome! If you have suggestions for improvements or new features, feel free to create an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.
For any inquiries, you can reach me at AshokShau or on Telegram at AshokShau.