This Rust program automates the creation of random Git commits over a specified number of days.
- Initializes a new Git repository if not already initialized.
- Prompts for GitHub username, email, number of commits, and number of days.
- Generates random commit dates within the specified range.
- Creates commits with the generated dates.
- Configures remote Git repository if not already set.
- Rust and Cargo installed
- Git installed
- Clone the repository:
git clone https://github.com/Muhammed770/retro_commit.git
cd retro_commit
- Build and run the program:
cargo build
cargo run
Follow the prompts to enter your GitHub username, email, number of commits, and number of days.
Example
user.name: default_username
user.email: [email protected]
Do you want to change DEFAULT user.name and user.email? (Y/N)
Y
Enter username: muhammed770
Please enter email id linked to your GitHub: [email protected]
Please enter number of commits: 10
Please enter number of days: 30
The program will generate 10 random commits over the past 30 days.
This project is licensed under the MIT License.